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

execute

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

Executes all the tests in this spec, returning a Failure if there was an exception in a listener or class initializer. Otherwise returns the results for the tests in that spec.