Java Kotlin

How to ignore generated Kotlin files in Jacoco?

I am using build.gradle.kts Jacoco: id(“org.barfuin.gradle.jacocolog”) version “3.1.0” Optics from Arrow library Arrow library generates __OpticsKt files that don’t have coverage in Jacoco. How to ignore them in the build.gradle.kts? Answer You need to add tasks.jacocoTestReport { block: How does it work? It seems like Jacoco uses .class files to generate coverage. Check in your […]