What’s the best to do in tests? Use `UnconfinedTes...
# coroutines
s
What’s the best to do in tests? Use
UnconfinedTestDispatcher
and advance the coroutines automatically? or Use
StandardTestDispatcher
and manually execute the jobs? Do we have any recommendations from the official docs?
1
j
Might be a matter of taste. I prefer using a standard dispatcher and explicitly calling
runCurrent
or
advanceUntilIdle
if the test requires some coroutines to have run before doing something.