kotest-runner-junit5 / io.kotest.runner.junit.platform / JUnitTestEngineListener / specInstantiationError

specInstantiationError

fun specInstantiationError(kclass: KClass<out Spec>, t: Throwable): Unit

If the spec fails to be created, then there will be no tests, so we should insert an instantiation failed test so that the spec shows up.