Norbert Kiesel
03/18/2026, 6:09 AMOliver.O
03/18/2026, 10:06 AMkotlinx-coroutines-debug dependency is present:
> On the JVM, if DebugProbes from the kotlinx-coroutines-debug module are installed, the current dump of the coroutines' stack is printed to the console on timeout before the test body is cancelled.
It seems like what would have helped is just turning off TestScope globally. To do so, a custom test session for a test module can be configured like so:
class ModuleSession : TestSession(testConfig = DefaultConfiguration.testScope(false))Norbert Kiesel
03/18/2026, 11:24 AMval Quest11Test by testSuite {
test("one") {
....
}
}Oliver.O
03/18/2026, 11:26 AMModuleSession.kt. It's documented here.Norbert Kiesel
03/18/2026, 11:32 AMclass ModuleTestSession : TestSession(testConfig = DefaultConfiguration.timingReport())
private val name = Regex("""↘(.+)»""")
private fun TestElement.Path.name() = name.find(toString())!!.groupValues[1]
fun TestConfig.timingReport(): TestConfig {
return aroundEachTest { elementAction ->
val duration = measureTime { elementAction() }
println("${testElementPath.name()}: $duration")
}
}
So could I combine this timingReport with the testScope(false))?Oliver.O
03/18/2026, 11:34 AMDefaultConfiguration.timingReport().testScope(false)
would do the job.Norbert Kiesel
03/18/2026, 11:45 AMOliver.O
03/18/2026, 11:47 AMNorbert Kiesel
03/18/2026, 11:49 AMNorbert Kiesel
03/18/2026, 11:54 AM