kotest-core / io.kotest.core.engine / SpecExecutor

SpecExecutor

class 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.

Parameters

listener - a listener that is notified of events in the spec lifecycle

Constructors

<init>

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.

SpecExecutor(listener: TestEngineListener)

Functions

execute

Executes the given Spec.

suspend fun execute(kclass: KClass<out Spec>): Unit