vanniktech/gradle-android-junit-jacoco-plugin

jacoco.includeNoLocationClasses for instrumentation test change

aygalinc opened this issue · 3 comments

Hi,

As explained here : https://veskoiliev.com/how-to-setup-jacoco-for-android-project-with-java-kotlin-and-multiple-flavours/ , android Dsl syntax as change in version 3.3.0 and so the valid way to configure this is now :

tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
}

Mind creating a PR for that?

Thanks for your PR in #150

I've merged it

Where is this flag for Kotlin DSL.

tasks.withType<Test> {
    useJUnitPlatform()
//              this option is not available
    jacoco.includeNoLocationClasses = true.
}