Does anyone have a good example of how to unit tes...
# announcements
k
Does anyone have a good example of how to unit test asynchronous code with coroutines? I'm thinking of something like TestSubscriber in RX
d
you want to check the async result, or call the coroutine from the test?
k
Call coroutine from the test. At the end I delegated my coroutine wrapper to switch launch function to runBlocking in the beginning of tests.