Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.5.2
-
Labels:None
-
Environment:Windows
-
Number of attachments :
Description
After adding this to the POM:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<instrumentation>
<excludes>
<exclude>org/example/**/*Test.class</exclude>
<exclude>$
</exclude>
</excludes>
</instrumentation>
<check>
<haltOnFailure>false</haltOnFailure>
</check>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Cobertura still reports on all classes.
Issue Links
- is related to
-
SONAR-1283
Exclusions are not handled properly by Cobertura
-
I am having the exact same issue. I cannot get Cobertura to exclude or ignore. The documentation is sparse and very poor for beginners. Can somebody get on this? My management is on my tail trying to get unwanted packages removed from the coverage reports.