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

funSpec

fun funSpec(block: FunSpecTestFactoryConfiguration.() -> Unit): TestFactory

Creates a TestFactory from the given block.

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