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")
}
}
}
Content copied to clipboard
Functions
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)