Join Slack
Powered by
Hello! Is there any possibility to run test in sup...
# coroutines
p
PHondogo
03/18/2020, 7:53 PM
Hello! Is there any possibility to run test in supend test function?
Copy code
class Test{ @Test suspend test() { // test logic with suspend calls } }
d
Dennis
03/18/2020, 8:58 PM
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/
j
Joffrey
04/28/2020, 7:21 PM
On JVM you can use that library indeed. Otherwise, this is not supported yet, but you can upvote the issue here:
https://youtrack.jetbrains.com/issue/KT-22228
There is also a workaround there.
2
Views
Open in Slack
Previous
Next