JacocoEverywhere icon indicating copy to clipboard operation
JacocoEverywhere copied to clipboard

File Excludes

Open mettke opened this issue 8 years ago • 2 comments

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!

mettke avatar Aug 16 '16 12:08 mettke

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..

paveldudka avatar Aug 27 '16 04:08 paveldudka

No workaround to exclude files?

edicarreras avatar Nov 22 '17 18:11 edicarreras