kotest-core / io.kotest.core.engine

Package io.kotest.core.engine

Types

DiscoveryFilter

interface DiscoveryFilter

DiscoveryRequest

DiscoveryRequest describes how to discover test classes.

data class DiscoveryRequest

DiscoveryResult

Contains Spec classes discovered as part of a discovery request scan.

data class DiscoveryResult

InstancePerLeafSpecRunner

class InstancePerLeafSpecRunner : SpecRunner

InstancePerTestSpecRunner

Implementation of SpecRunner that executes each TestCase in a fresh instance of the Spec class.

class InstancePerTestSpecRunner : SpecRunner

IsolationTestEngineListener

class IsolationTestEngineListener : TestEngineListener

KotestEngine

class KotestEngine

SingleInstanceSpecRunner

Implementation of SpecRunner that executes all tests against the same Spec instance. In other words, only a single instance of the spec class is instantiated for all the test cases.

class SingleInstanceSpecRunner : SpecRunner

SpecExecutor

Handles the execution of a single Spec class. Delegates to a SpecRunner which determines how and when to instantiate fresh specs based on the IsolationMode of the spec.

class SpecExecutor

SpecRunner

The base class for executing all the tests inside a Spec.

abstract class SpecRunner

TestDiscovery

Scans for tests as specified by a DiscoveryRequest. DiscoveryExtension afterScan functions are applied after the scan is complete to optionally filter the returned classes.

object TestDiscovery

TestEngineListener

Implementations of this interface will be notified of events that occur as part of the KotestEngine lifecycle.

interface TestEngineListener

Functions

instantiateSpec

Creates an instance of a Spec by delegating to constructor extensions, with a fallback to a reflection based zero-args constructor.

fun <T : Spec> instantiateSpec(clazz: KClass<T>): Try<Spec>