bmuschko / gradle-clover-plugin

Gradle plugin for generating a code coverage report using Clover
Apache License 2.0
74 stars 49 forks source link

Contexts to exclude with filter does not seem to work with multi-module project #40

Closed johany closed 10 years ago

johany commented 11 years ago

I am trying to exclude some methods from the report but it does not seem to work with multi-module project. It works per module, but not when running cloverAggregateReports. As far as I can see you don't include the filter when calling the writeReports() method from aggregateReportsTask task.

clover { licenseLocation = rootProject.file('clover.license')

contexts {
    method {
        name = 'output'
        regexp = 'public void iAmUnused\\(\\).*'
    }
}

report {
    filter = 'output'
    pdf=true
    html = true
}

}