https://kotlinlang.org logo
#announcements
Title
# announcements
k

krenvpravo

09/25/2017, 2:30 PM
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

davicdsalves

09/25/2017, 2:41 PM
you want to check the async result, or call the coroutine from the test?
k

krenvpravo

10/10/2017, 8:26 PM
Call coroutine from the test. At the end I delegated my coroutine wrapper to switch launch function to runBlocking in the beginning of tests.
3 Views