tutteli-spek-extensions / ch.tutteli.spek.extensions / TempFolder

TempFolder

class TempFolder : LifecycleListener

Properties

tmpDir

val tmpDir: <ERROR CLASS>

Functions

afterExecuteAction

fun afterExecuteAction(action: ActionScope): Unit

afterExecuteGroup

fun afterExecuteGroup(group: GroupScope): Unit

afterExecuteTest

fun afterExecuteTest(test: TestScope): Unit

beforeExecuteAction

fun beforeExecuteAction(action: ActionScope): Unit

beforeExecuteGroup

fun beforeExecuteGroup(group: GroupScope): Unit

beforeExecuteTest

fun beforeExecuteTest(test: TestScope): Unit

newFile

fun newFile(name: String): <ERROR CLASS>

newFolder

fun newFolder(name: String): <ERROR CLASS>

Companion Object Functions

perAction

fun perAction(): TempFolder

Sets up the tmpDir before each action and cleans it up after each action.

perGroup

fun perGroup(): TempFolder

Sets up the tmpDir before each group and cleans it up after each group.

perTest

fun perTest(): TempFolder

Sets up the tmpDir before each test and cleans it up after each test.