https://kotlinlang.org logo
Title
a

Animesh Sahu

12/10/2020, 1:47 PM
Support suspend test functions Why's it still not implemented in stdlib 🤔 There should be a runBlocking or runBlockingTest, for testing coroutine based code in commonTest module...
c

Casey Brooks

12/10/2020, 3:30 PM
It’s not available in common because not all platforms have a concept of “blocking” (namely JS). There are no such primitives in JS that would allow coroutines to block That said, #kotest supports testing coroutines on JS, and works pretty well for it. Internally, it returns a Promise to the underlying testing frameworks instead of blocking directly