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

Package io.kotest.core.spec.style

Types

AnnotationSpec

abstract class AnnotationSpec : Spec

BehaviorSpec

abstract class BehaviorSpec : DslDrivenSpec, BehaviorSpecDsl

BehaviorSpecDsl

interface BehaviorSpecDsl : SpecDsl

BehaviorSpecTestFactoryConfiguration

class BehaviorSpecTestFactoryConfiguration : TestFactoryConfiguration, BehaviorSpecDsl

ContextScope

class ContextScope

DescribeSpec

abstract class DescribeSpec : DslDrivenSpec, DescribeSpecDsl

DescribeSpecDsl

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

interface DescribeSpecDsl : SpecDsl

DescribeSpecTestFactoryConfiguration

class DescribeSpecTestFactoryConfiguration : TestFactoryConfiguration, DescribeSpecDsl

DslDrivenSpec

abstract class DslDrivenSpec : Spec

ExpectScope

class ExpectScope

ExpectSpec

abstract class ExpectSpec : DslDrivenSpec, ExpectSpecDsl

ExpectSpecDsl

interface ExpectSpecDsl : SpecDsl

ExpectSpecTestFactoryConfiguration

class ExpectSpecTestFactoryConfiguration : TestFactoryConfiguration, ExpectSpecDsl

FeatureScope

class FeatureScope

FeatureSpec

abstract class FeatureSpec : DslDrivenSpec, FeatureSpecDsl

FeatureSpecDsl

interface FeatureSpecDsl : SpecDsl

FeatureSpecTestFactoryConfiguration

class FeatureSpecTestFactoryConfiguration : TestFactoryConfiguration, FeatureSpecDsl

FreeSpec

abstract class FreeSpec : DslDrivenSpec, FreeSpecDsl

FreeSpecDsl

interface FreeSpecDsl : SpecDsl

FreeSpecScope

class FreeSpecScope

FreeSpecTestFactoryConfiguration

class FreeSpecTestFactoryConfiguration : TestFactoryConfiguration, FreeSpecDsl

FunSpec

abstract class FunSpec : DslDrivenSpec, FunSpecDsl

FunSpecDsl

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

interface FunSpecDsl : SpecDsl

FunSpecTestFactoryConfiguration

class FunSpecTestFactoryConfiguration : TestFactoryConfiguration, FunSpecDsl

GivenAndContext

class GivenAndContext

GivenContext

class GivenContext

ScenarioBuilder

class ScenarioBuilder

ShouldScope

class ShouldScope

ShouldSpec

abstract class ShouldSpec : DslDrivenSpec, ShouldSpecDsl

ShouldSpecDsl

Example:

interface ShouldSpecDsl : SpecDsl

ShouldSpecTestFactoryConfiguration

class ShouldSpecTestFactoryConfiguration : TestFactoryConfiguration, ShouldSpecDsl

StringSpec

abstract class StringSpec : DslDrivenSpec, StringSpecDsl

StringSpecDsl

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

interface StringSpecDsl : SpecDsl

StringSpecTestFactoryConfiguration

Decorates a TestFactoryConfiguration with the StringSpec DSL.

class StringSpecTestFactoryConfiguration : TestFactoryConfiguration, StringSpecDsl

Test

typealias Test = Test

TestBuilders

object TestBuilders

ThenContext

class ThenContext

WhenAndContext

class WhenAndContext

WhenContext

class WhenContext

WordSpec

abstract class WordSpec : DslDrivenSpec, WordSpecDsl

WordSpecDsl

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

interface WordSpecDsl : SpecDsl

WordSpecTestFactoryConfiguration

Decorates a TestFactoryConfiguration with the WordSpec DSL.

class WordSpecTestFactoryConfiguration : TestFactoryConfiguration, WordSpecDsl

Annotations

KotestDsl

annotation class KotestDsl

Extensions for External Classes

kotlin.reflect.KClass

kotlin.reflect.KFunction

Functions

behaviorSpec

Creates a TestFactory from the given block.

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

describeSpec

Creates a TestFactory from the given block.

fun describeSpec(block: DescribeSpecTestFactoryConfiguration.() -> Unit): TestFactory

expectSpec

Creates a TestFactory from the given block.

fun expectSpec(block: ExpectSpecTestFactoryConfiguration.() -> Unit): TestFactory

featureSpec

Creates a TestFactory from the given block.

fun featureSpec(block: FeatureSpecTestFactoryConfiguration.() -> Unit): TestFactory

freeSpec

Creates a TestFactory from the given block.

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

funSpec

Creates a TestFactory from the given block.

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

shouldSpec

Creates a TestFactory from the given block.

fun shouldSpec(block: ShouldSpecTestFactoryConfiguration.() -> Unit): TestFactory

stringSpec

Creates a TestFactory from the given block.

fun stringSpec(block: StringSpecTestFactoryConfiguration.() -> Unit): TestFactory

wordSpec

Creates a TestFactory from the given block.

fun wordSpec(block: WordSpecTestFactoryConfiguration.() -> Unit): TestFactory