kotest-core / io.kotest.core.engine / IsolationTestEngineListener

IsolationTestEngineListener

class IsolationTestEngineListener : TestEngineListener

Constructors

<init>

IsolationTestEngineListener(listener: TestEngineListener)

Properties

listener

val listener: TestEngineListener

Functions

engineFinished

Is invoked when the KotestEngine has finished execution.

fun engineFinished(t: Throwable?): Unit

engineStarted

Is invoked when the KotestEngine is starting execution.

fun engineStarted(classes: List<KClass<out Spec>>): Unit

specFinished

Is invoked once per Spec to indicate that all TestCase instances of the spec have completed.

fun specFinished(kclass: KClass<out Spec>, t: Throwable?, results: Map<TestCase, TestResult>): Unit

specInstantiated

Invoked each time an instance of a Spec is created. A spec may be created once per class, or one per TestCase.

fun specInstantiated(spec: Spec): Unit

specInstantiationError

fun specInstantiationError(kclass: KClass<out Spec>, t: Throwable): Unit

specStarted

Is invoked once per Spec to indicate that this spec is about to begin execution.

fun specStarted(kclass: KClass<out Spec>): Unit

testFinished

Invoked when all the invocations of a TestCase have completed. This function will only be invoked if a test case was active. The result passed in here is the result directly from the test run, before any interception.

fun testFinished(testCase: TestCase, result: TestResult): Unit

testIgnored

Invoked if a TestCase will not be executed because it is ignored (not active).

fun testIgnored(testCase: TestCase, reason: String?): Unit

testStarted

Invoked if a TestCase is about to be executed (is active). Will not be invoked if the test is ignored.

fun testStarted(testCase: TestCase): Unit