kotest-core / io.kotest.core.engine / InstancePerLeafSpecRunner

InstancePerLeafSpecRunner

class InstancePerLeafSpecRunner : SpecRunner

Types

Enqueued

data class Enqueued

Constructors

<init>

InstancePerLeafSpecRunner(listener: TestEngineListener)

Functions

execute

The intention of this runner is that each TestCase executes in it's own instance of the containing Spec class. Therefore, when we begin executing a test case from the queue, we must first instantiate a new spec, and begin execution on that instance.

suspend fun execute(spec: Spec): Try<Map<TestCase, TestResult>>