Join Slack
Powered by
Also handy when testing async code <https://github...
# announcements
r
raulraja
08/10/2017, 9:07 AM
Also handy when testing async code
https://github.com/kotlintest/kotlintest/blob/master/doc/reference.md#eventually-
👍 1
n
napperley
08/10/2017, 9:48 PM
Does KotlinTest cover testing Kotlin Coroutines?
r
raulraja
08/10/2017, 10:26 PM
AFAIK it does not have special combinators for corutines but we use it extensively when testing our coroutines in Kategory. For example:
https://github.com/kategory/kategory/blob/master/kategory/src/test/kotlin/kategory/data/OptionTest.kt#L108
Even in property based testing:
https://github.com/kategory/kategory/blob/master/kategory/src/test/kotlin/kategory/laws/MonadLaws.kt#L57
👍 1
raulraja
08/10/2017, 10:27 PM
In those links
bind()
is a suspended function similar to
async/await
3
Views
Open in Slack
Previous
Next