SuiteDsl

A group of tests.

Example

suite("An example") {
test("A test") {
println("Execution")
}

suite("A group of tests") {
test("First test") {
println("Execution")
}

text("Second test") {
println("Execution")
}
}
}

Functions

Link copied to clipboard
abstract fun suite(name: String, config: TestConfig = TestConfig.Empty, block: SuiteDsl.() -> Unit)

Creates a child suite named name of the current suite.

Link copied to clipboard
abstract fun test(name: String, config: TestConfig = TestConfig.Empty, block: suspend TestDsl.() -> Unit)

Declares a test named name as part of the current suite.

open fun test(name: String, context: CoroutineContext = EmptyCoroutineContext, config: TestConfig = TestConfig.Empty, block: suspend TestDsl.() -> Unit)