Join Slack
Powered by
Hi all, Is there any testable error handling with ...
# coroutines
m
Mohamed Hamdan
09/18/2019, 9:36 PM
Hi all, Is there any testable error handling with coroutines without try catch?
e
Evan R.
09/18/2019, 10:09 PM
You could run your coroutine in a
runBlocking()
and it any thrown errors will be thrown out of it. Typically you’d use
assertThrows()
for verifying thrown exceptions.
6
Views
Open in Slack
Previous
Next