pablisco
12/07/2018, 2:21 PMDispatchers.Main
when running on the test configuration (e.g. Unit tests)streetsofboston
12/07/2018, 2:23 PMTestCoroutineContext
.
E.g. instead of SuperviserJob() + Dispatcher.Main
you could do SuperviserJob() + testCoroutineContext
, where testCoroutineContext
is a singleton instance of TestCoroutineContext
and you can control it in your unit-test code.pablisco
12/07/2018, 2:37 PMDispatcher.Main
as that one should be ok for the test I'm running instead of the one that is injected by services for android... I'm trying to remove the dependency to coroutines-android
for the test configuration 🤔Vsevolod Tolstopyatov [JB]
12/07/2018, 4:18 PMcoroutines-test
in 1.1 🙂streetsofboston
12/07/2018, 4:23 PMTestCoroutineContext
, or its replacement, fit into this, since it is marked as obsolete/deprecated?Vsevolod Tolstopyatov [JB]
12/07/2018, 4:24 PMTestCoroutineContext
will be part of this module, but not in 1.1