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

execute

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

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.