allan.conda
05/11/2022, 5:38 PMrunTest
following this migration guide.
I’m struggling to migrate my test code which expects the dispatcher to be unpaused throughout the whole test.
Is there a way to do this or do I really have to call runCurrent()
for every step I want to assert?Nick Allen
05/11/2022, 8:48 PMUnconfinedTestDispatcher
which is covered in that migration guide.
FYI, I prefer to add runCurrent
for every step anyways to make my tests more robust. I've had to add runCurrent
later after tests started failing only because adjusting the implementation changed what the test dispatcher ran automatically.allan.conda
05/12/2022, 10:44 AMUnconfinedTestDispatcher
doesn’t really work most of the time. You don’t know when it’s not going to work so it seems better to do runCurrent
as you say 😅
Not having to think about coroutines except for complex cases was so convenient for our team, but now that we update to latest Kotlin that option is deprecated.allan.conda
05/31/2022, 6:51 PMStylianos Gakis
05/31/2022, 8:09 PMallan.conda
06/01/2022, 2:10 AM