Is there an easy way to use Espresso idling resources with coroutines? I'm not sure how I can make sure that my espresso tests waits until all coroutines finish running.
09/12/2019, 4:33 PM
09/12/2019, 5:31 PM
I confess that I never tried it on espresso tests, only on unit tests. This works for you?
unfortunately I believe it will not work, because the coroutines are started on the device, not on the same thread as the tests. There is a open issue on github about using idling resources with coroutines. I was wondering how this is being handling until this issue gets merged:
09/13/2019, 5:29 AM
there are couple solutions in the issue you linked
you just have to copy paste them and tweak them a bit 😉