I’m running into an issue on Android using Espress...
# flow
e
I’m running into an issue on Android using Espresso to run Android Instrumentation Tests. If I use
asLiveData()
to create a
CoroutineLiveData
around a Flow, I am able to use Espresso to perform a click, but then it appears to hang the test (the next statement isn’t executed). I’ve set up IdlingResources for my CoroutineDispatchers. Is there something else I need to do with the CoroutineScope in which the Flow is launched? If appears that it doesn’t matter what
CoroutineScope
the Flow launches in, the issue is still the same.