I try to exclude some packages from the jacoco report but I don't find any documentation about doing that.
I tried that, but doesn't work:
testOptions {
unitTests {
jacoco {
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: '**/*databinding/**/*.*')
}))
}
}
}
}
I use com.android.tools.build:gradle:8.0.2
and org.jacoco:org.jacoco.core:0.8.8
.
Do you know how to exclude packages from jacoco report?