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
Pedro Alberto
03/22/2023, 11:56 AM
hi did you try Kover ?
Pedro Alberto
03/22/2023, 11:58 AM
we had same problem for Flows and Kover is much better
d
darkmoon_uk
03/22/2023, 11:25 PM
@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
Nikhil R
03/23/2023, 12:19 AM
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
darkmoon_uk
03/23/2023, 12:42 AM
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
Nikhil R
03/23/2023, 6:40 PM
I see, that makes sense. So put simply, the intellij engine doesn't have this issue with inline functions.