kotest-core / io.kotest.core.spec.style / WhenContext

WhenContext

class WhenContext

Constructors

<init>

WhenContext(description: Description, context: TestContext, spec: BehaviorSpecDsl)

Functions

afterTest

fun afterTest(f: AfterTest): Unit

And

suspend fun And(name: String, test: suspend WhenAndContext.() -> Unit): Unit

and

suspend fun and(name: String, test: suspend WhenAndContext.() -> Unit): Unit

beforeTest

fun beforeTest(f: BeforeTest): Unit

Then

suspend fun Then(name: String, test: suspend ThenContext.() -> Unit): Unit

then

suspend fun then(name: String, test: suspend ThenContext.() -> Unit): Unit
fun then(name: String): TestScope