kotest-core / io.kotest.core.spec / SpecDsl

SpecDsl

interface SpecDsl

Properties

addListener

abstract val addListener: (TestListener) -> Unit

addTest

abstract val addTest: (name: String, test: suspend TestContext.() -> Unit, config: TestCaseConfig, type: TestType) -> Unit

Functions

defaultConfig

abstract fun defaultConfig(): TestCaseConfig

Inheritors

BehaviorSpecDsl

interface BehaviorSpecDsl : SpecDsl

DescribeSpecDsl

Defines the DSL for creating tests in the 'FunSpec' style

interface DescribeSpecDsl : SpecDsl

ExpectSpecDsl

interface ExpectSpecDsl : SpecDsl

FeatureSpecDsl

interface FeatureSpecDsl : SpecDsl

FreeSpecDsl

interface FreeSpecDsl : SpecDsl

FunSpecDsl

Defines the DSL for creating tests in the 'FunSpec' style

interface FunSpecDsl : SpecDsl

ShouldSpecDsl

Example:

interface ShouldSpecDsl : SpecDsl

StringSpecDsl

Defines the DSL for creating tests in the 'StringSpec' style.

interface StringSpecDsl : SpecDsl

WordSpecDsl

Defines the DSL for creating tests in the 'WordSpec' style.

interface WordSpecDsl : SpecDsl