Hi. I am looking into Kotlin code coverage. There ...
# code-coverage
n
Hi. I am looking into Kotlin code coverage. There is an open issue on Jacoco for inline functions not marked as covered. https://github.com/jacoco/jacoco/issues/654#issuecomment-976535154 1. I would like to know if Kover accounts for this case, and fixes the issue (marks inline functions as covered). 2. Is the output report like what Jacoco gives us? 3. I am interested in prototyping using Kover - but we don't use Gradle (we use Buck), so any help understanding what I need to supply to Kover to get it working outside of the Gradle plugin would be very helpful. I am combing through the plugin source at the moment, but ideally I just want a trivial way of forcing Kover to run on the Kotlin code, instead of Jacoco.
p
hi did you try Kover ?
we had same problem for Flows and Kover is much better
d
@Pedro Alberto May be more specific to say the IntelliJ coverage engine is better - since Kover is essentially an abstraction layer over either the (default) IntelliJ or JaCoCo coverage engines (which would face the same issue even running under Kover).
n
Yeah Kover is what I want to prototype using. But if it's just a layer over Jacoco I am wondering if it mitigates the issue I shared - that inline functions are not marked as covered.
d
But if it's just a layer over Jacoco
It's a layer over JaCoCo OR IntelliJ Engine - you get to choose which one, when you configure it. Choosing IntelliJ engine is expected to cover inline functions.
n
I see, that makes sense. So put simply, the intellij engine doesn't have this issue with inline functions.