interface ShouldSpecDsl : SpecDsl
Example:
"some test" { "with context" { should("do something") { // test here } } }
or
should("do something") { // test here }
Testbuilder |
class Testbuilder |
context |
Adds a top level context scope to the spec. open fun context(name: String, init: suspend ContextScope.() -> Unit): Unit |
invoke |
open operator fun String. |
should |
open fun should(name: String, test: suspend TestContext.() -> Unit): Unitopen fun should(name: String): Testbuilder |
ShouldSpec |
abstract class ShouldSpec : DslDrivenSpec, ShouldSpecDsl |
ShouldSpecTestFactoryConfiguration |
class ShouldSpecTestFactoryConfiguration : TestFactoryConfiguration, ShouldSpecDsl |