preparedSuite

fun AbstractSpec.preparedSuite(config: TestConfig = TestConfig.Empty, block: KotestSuiteDsl.() -> Unit)(source)

Executes a Prepared SuiteDsl in an existing Kotest suite.

To create a Prepared-specific suite, see PreparedSpec.

Example

This example uses StringSpec, but tests can be registered using any spec.

class MyTests : StringSpec({
"A regular Kotest test" {
// …
}

preparedSuite {
test("A regular Prepared test") {
// …
}

suite("A regular Prepared test suite") {
// …
}
}
})