class WordSpecTestFactoryConfiguration : TestFactoryConfiguration, WordSpecDsl
Decorates a TestFactoryConfiguration with the WordSpec DSL.
<init> |
Decorates a TestFactoryConfiguration with the WordSpec DSL. WordSpecTestFactoryConfiguration() |
addTest |
val addTest: KFunction4<String, suspend TestContext.() -> Unit, TestCaseConfig, TestType, Unit> |
defaultConfig |
fun defaultConfig(): TestCaseConfig |
autoClose |
Register an AutoCloseable so that it's close methods is automatically invoked when the tests are completed. fun <T : AutoCloseable> TestConfiguration.autoClose(closeable: T): Tfun <T : AutoCloseable> TestConfiguration.autoClose(closeable: Lazy<T>): Lazy<T> |
build |
Builds an immutable TestFactory from this configuration. fun TestFactoryConfiguration.build(): TestFactory |
tempfile |
fun TestConfiguration.tempfile(prefix: String? = null, suffix: String? = ".tmp"): File |