Hello,
I'm using the cobertura-maven-plugin in my project and it's giving me some
weird issues. On one particular class, it's giving me the following error:
Branch coverage rate of 68.7% is below 75.0%.
However, when I run the same test in IntelliJ (9.0.1 Ultimate), it says I
have 100% methods covered and 98% of lines covered. Any ideas why Cobertura
is giving inaccurate information?
Here's the relevant snippets from my pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.3</version>
<configuration>
<check>
<branchRate>75</branchRate>
<lineRate>75</lineRate>
<haltOnFailure>${cobertura.haltOnFailure}</haltOnFailure>
</check>
</configuration>
<executions>
<execution>
<goals>
<goal>clean</goal>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<version>2.3</version>
</plugin>
Thanks,
Matt
--
View this message in context:
http://old.nabble.com/Cobertura-Maven-Plugin-reports-lower-branch-coverage-than-IDEA-Coverage-tp28102246p28102246.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email