kotest-core / io.kotest.core.spec.style / FunSpecTestFactoryConfiguration

FunSpecTestFactoryConfiguration

class FunSpecTestFactoryConfiguration : TestFactoryConfiguration, FunSpecDsl

Constructors

<init>

FunSpecTestFactoryConfiguration()

Properties

addTest

val addTest: KFunction4<String, suspend TestContext.() -> Unit, TestCaseConfig, TestType, Unit>

Functions

defaultConfig

fun defaultConfig(): TestCaseConfig

Extension Functions

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