JacocoEverywhere
JacocoEverywhere copied to clipboard
File Excludes
In JaCoCo there is a way to exclude files and folders which should not be included into the Coverage Report. Is there a way to do something similar in JavocoEverywhere?
jacocoTestReport {
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it, exclude: 'com/blah/**')
})
}
}
Btw pretty nice plugin. Works really good so far!
The way this plugin is implemented - it uses Jacoco coverage report task built into Android plugin. Unfortunately, this report task is not traditional JacocoReport
task - it is fully customized task by Android team. This means that all those options available to JacocoReport
tasks do not simply work :(. It means that there is no an easy way to customize list of classes included into coverage report.
Im thinking about implementing v2 version of this plugin which will use JacocoReport
type of task for generating report, so I doesn't use Android one anymore, but it will be a major rework, so don't have any estimates at this point..
No workaround to exclude files?