Jacoco shows 0% coverage for Kotlin's data classes. How to configure it to measure coverage or ignore data classes at all?
I was looking for the solution for same test coverage issue with auto-generated code for data model classes and stumbled upon following :
Kotlin + JaCoCo: Tuning Compiler to Skip Generated Code
Solution: Update JaCoCo plugin to 0.8.2 and your issues is resolved.
JaCoCo has solved this very issue in 0.8.2 release, please read the changelog-