streetsofboston
01/09/2018, 8:58 PMCoroutineContext
that allows you to do so.
It is very much like the RxJava’s TestScheduler
and its methods triggerActions
, advanceTimeBy
, etc.
It does so by implementing a Coroutine Dispatcher (for speeding up (virtual) time) and a Coroutine Exception Handler (for testing thrown exceptions).
The main TestCoroutineContext
class and some unit-tests can be found here:
https://gist.github.com/streetsofboston/6ea225c61566e6d349883082fbb9f020streetsofboston
01/09/2018, 9:26 PMTestCoroutineContext
, please let me know. Thank you!