kotest-core / io.kotest.core.engine / TestEngineListener / specFinished

specFinished

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

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

Parameters

kclass - the spec that has completed

t - if not null, then an error that occured when trying to execute this spec

results - if t is null, then the results of the tests that were submitted.