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

behaviorSpec

fun behaviorSpec(block: BehaviorSpecTestFactoryConfiguration.() -> Unit): TestFactory

Creates a TestFactory from the given block.

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