Also handy when testing async code <https://github...
# announcements
r
n
Does KotlinTest cover testing Kotlin Coroutines?
r
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
In those links
bind()
is a suspended function similar to
async/await