Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cobertura & Java 7 support

Any ideas when cobertura will support java 7?

Found http://sourceforge.net/tracker/index.php?func=detail&aid=3295711&group_id=130558&atid=720018

We preferred cobertura over emma and other code coverage tools and looks like we have to redo all those again, now that none of them support java 7 yet.

Thanks

like image 765
crankparty Avatar asked Nov 16 '11 12:11

crankparty


People also ask

What is cobertura used for?

Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage. It is based on jcoverage.

What is cobertura in Jenkins?

This plugin allows you to capture code coverage report from Cobertura. Jenkins will generate the trend report of coverage. The Cobertura plugin can be downloaded here.

How do I get cobertura report?

1. Cobertura Code Coverage Report. Do nothing, just type the following Maven command to download and run the maven-cobertura-plugin automatically. Maven will generate the Cobertura code coverage report at ${project}/target/site/cobertura/index.


2 Answers

Cobertura 2.0.3 supports Java 7, the cobertura-maven-plugin version 2.6 which uses this version has been just released

like image 130
David Rabinowitz Avatar answered Sep 24 '22 13:09

David Rabinowitz


I was able to get it to work by adding the following argument:

-XX:-UseSplitVerifier

I got it from here.

like image 32
T.K. Avatar answered Sep 22 '22 13:09

T.K.