Blockhound's `allowBlockingCallsInside` does not w...
# coroutines
s
Blockhound's
allowBlockingCallsInside
does not work if I don't run the test in debug mode? I am thinking its a stack trace recovery issue during normal tests? I tried following to replicate courotines debug mode during normal test runs
Copy code
tasks.withType<Test> {
    useJUnitPlatform()
    jvmArgs = listOf("-XX:+AllowRedefinitionToAddDeleteMethods", "-ea", "-Dkotlinx.coroutines.debug=on", "-Dkotlinx.coroutines.stacktrace.recovery=true")
}
but it didnt work Any help is apprecitated!
d
The BlockHound integration is provided in the
kotlinx-coroutines-debug
artifact. I don't think it's necessary to run tests in the debug mode, but you do need to list
kotlinx-coroutines-debug
as a dependency.