Hi,
My jacocoTestCoverageVerification is failing our build because its including org.gradle. I’m using gradle 3.5. I’ve tried to exclude these packages, but it’s not working. I’ve only get 29% line coverage because, understandably, I’m not testing anything in the org.gradle packages. Any suggestions? thx
Any suggestions?
jacocoTestCoverageVerification {
violationRules {
rule {
excludes = ['org.gradle.*']
limit {
counter = "LINE"
minimum = 0.90
}
}
}
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.enabled true
html.destination "${rootDir}/.tempReports/${task.project.name}/"
}
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,
excludes: [
'org/gradle/**'
])
})
}
}