Has anyone had any success in excluding certain packages from Cobertura’s code coverage report? The plug-in documentation states there’s a convention property as follows:
coverageExcludes (type: List) – List of regular expressions to specify which class files to exclude from coverage report
However, neither one of these seems to work:
cobertura {
coverageExcludes = [ '*.\mypackage\..*' ];
}
Or following the ant-style pattern:
cobertura {
coverageExcludes = [ '**/mypackage/*' ];
}
Has anyone managed to get this to successfully exclude classes from the coverage report / count?
Cheers, JB