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

freeSpec

fun freeSpec(block: FreeSpecTestFactoryConfiguration.() -> Unit): TestFactory

Creates a TestFactory from the given block.

The receiver of the block is a FreeSpecTestFactoryConfiguration which allows tests to be defined using the 'free-spec' style.