Suite • opensavvy.prepared.suite • SuiteDsl
SuiteDsl
interface SuiteDsl : PreparedDsl
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
suite
abstract fun suite(name: String, config: TestConfig = TestConfig.Empty, block: SuiteDsl.() -> Unit)
Creates a child suite named name of the current suite.
test
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)