CLOVIS09/21/2023, 8:44 PM
from KotlinX.Coroutines.test (e.g. to have access to the
). According to https://kotest.io/docs/framework/coroutines/test-coroutine-dispatcher.html, adding
should be enough to enable it, but I'm not sure how to access it. The only
.config(coroutineTestScope = true)
I see is the
provided in the test, and it doesn't look like it provides those accessors.
sam09/22/2023, 7:59 PM
CLOVIS09/23/2023, 10:14 AM
was renamed to
, so I assume the scope is available somehow?
but never stored/passed to anything else, so it is just lost 😕
, but it never reaches the coroutine context of the test for some reason. Even if it did, it doesn't look like
is available externally? Context of a test in StringSpec:
[RunningInRunTest, kotlinx.coroutines.test.TestCoroutineScheduler@2b4738b0, kotlinx.coroutines.test.CoroutineExceptionHandler$1@2b569700, TestScope[test started], StandardTestDispatcher[scheduler=kotlinx.coroutines.test.TestCoroutineScheduler@2b4738b0]]