https://kotlinlang.org logo
Title
l

Lex Luthra

06/08/2018, 4:40 AM
Is there a way to configure Jacoco (code coverage) to ignore Kotlin coroutines generated code?
g

gildor

06/08/2018, 4:49 AM
No such tool for now Check this topic https://youtrack.jetbrains.com/issue/KT-18383
Probably make sense to add case with coroutines there
e

Evgeniy Zaharov

06/08/2018, 11:27 AM
jacoco at 0.8.2-SNAPSHOT add filtering of kotlin auto generated code, but I don’t now, will it worked with coroutines or not see issue: https://github.com/jacoco/jacoco/issues/552
g

gildor

06/09/2018, 7:21 AM
No, looks like those changes of jacoco do not cover coroutines:
There're also problems with coroutines feature (there're uncovered branches in coroutines), but there would be an additional investigation, because coroutines are not finalized feature in Kotlin.