Last time I was using Jacoco for code coverage wit...
# announcements
a
Last time I was using Jacoco for code coverage with Kotlin it was not very comfortable to use it – numbers were way off because coverage is calculated on byte-code level and it included all the getters/setters generated by Kotlin. Did situation improve since then? Anything good to measure code coverage in Kotlin projects?
s
JB is working on a kotlin targeted code coverage tool.
a
Try the latest IDEA 2021.2 EAP with Intellij code coverage tool, I think it should work better than Jacoco.
a
I wanted to have something for CI. For Jacoco I had the setup that coverage would run only for changed code and would notify via github comment if coverage was too low. This was basically an automated check for all devs that tests were not forgotten and if they were – this should be a conscious decision by developer.