Questions tagged [cobertura]

Cobertura is a free and open-source Java tool based on jcoverage that calculates the percentage of code and branches covered by tests.

Cobertura is a free and open-source Java tool (commonly called a code coverage tool) based on jcoverage that calculates the percentage of code and branches covered by tests.

Cobertura does this by instrumenting the compiled bytecode. It can be run from the command line, via an Ant task, via a Maven plugin, or via the eCobertura Eclipse plugin. Builds can be made to fail if the code coverage reported by Cobertura does not meet a user-set threshold value. XML and HTML reports can be generated as output.

649 questions
0
votes
1 answer

Cobertura Report Generation Issue

I am facing an issue in generating cobertura report. Files getting compiles successfully. but during report generation i am getting import error as package not found.
Niraj Dave
  • 117
  • 2
  • 10
0
votes
1 answer

Sonar-Cobertura custom filters

I am using sonar in my project through sonar-maven plugin . I am using Cobertura plugin for code coverage analysis. I want to exclude some modules/classes from code coverage report. How can I do it? Thanks in advance.
0
votes
1 answer

Sonar + Multi Module Maven Projects

I am calling Sonar from my Jenkins job I noticed that the coverage of the classes in my domain module all show as having 0% test coverage even though the domains are being used in the other modules which have high test coverage. I am using cobertura…
Damien
  • 4,081
  • 12
  • 75
  • 126
0
votes
0 answers

Cobertura statistics per developer

do you know if there is some tool or maven plugin allowing to get cobertura data and specify it by developer? I know there is maven-blame-plugin but this is for findbugs, checkstyle and pmd reports. Do we have something similar for cobertura…
yart
  • 7,515
  • 12
  • 37
  • 37
0
votes
1 answer

How to exclude classes from cobertura analysis in sonar report when running from Jenkins/Hudson Plugin?

There is some classes I want to exclude from my cobertura coverage analysis: - com.foo.NiceStuff - com.foo.CoolStuff This is the only way I know to exclude…
0
votes
0 answers

NetBeans 7 corbetura showing 0% coverage

I'm using Cobertura 1.9.4 with NetBeans 7.2.1, Ant 1.8.3 and JDK 1.7.0_05 with JUnit 4.10. My HTML coverage reports are being generated, but they all list 0% unit test coverage. This shouldn't be the case because I have unit test that cover my…
simgineer
  • 1,754
  • 2
  • 22
  • 49
0
votes
3 answers

WebSphere cannot start webapp instrumented by cobertura

I instrumented a few classes, packed them in war and ear. Install this ear in WebSphere. Now this Application Status is Stopped. Should I place cobertura.jar anywere? Is where my mistake?
VovecUdalec
  • 151
  • 1
  • 8
0
votes
1 answer

Integration code coverage with cobertura and ant

Anyone know if possible to separate the unit coverage and integration coverage on sonar using cobertura and ant? Can provide any example if it is possible? Thanks!!!
user753536
  • 125
  • 1
  • 2
  • 5
0
votes
1 answer

Code Coverage in Web Applications (Wicket)

I am using Apache Wicket as my web application framework in Eclipse. Currently I have eCobertura as an eclipse plugin installed. But it needs a main() method to run. I do not have one. So how can I run code coverage within a web…
0
votes
1 answer

Instrumented (by cobertura) @Decorator bean could not validated by OpenEJB for unit testing

In order to get code coverage report, i instrument the @Decorator bean by cobertura maven plugin. When running my unit test in OpenEJB container. The container reports some error during start up (new initial context). Caused by:…
0
votes
1 answer

Getting Cobertura to dump from Jboss AS 7

I am trying to Obtain Cobertura Code Coverage reports for a Jboss AS 7 Application. I have properly Instrumented the app java artefacts and they all deploy fine. But I am not able to get Cobertura to dump the Cobertura.ser report upon stopping the…
Brian Antao
  • 131
  • 2
  • 11
0
votes
1 answer

Why does Cobertura seem to switch my Eclipse's Java version?

These are the steps that create the error: Run my unit tests within Eclipse (Cntrl-F11). All 67 succeed and report as such. Using an Ant build.xml file, run a Cobertura task to generate a coverage report. The task fails stating that a unit test has…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
0
votes
2 answers

Using Cobertura in unix to generate the code coverage reports

I m using cobertura-1.9.4.1 to generate code coverage reports.First I set the classpath to cobertura.jar and to other jars in the lib folder. Then I execute cobertura-instrument.sh. But on executing I get the error loaded information on 0 classes .…
nikhil
  • 1
0
votes
2 answers

Cobertura not analysing the project in grails

I'm using grails 1.3.7.I installed code-coverage plugin.And placed the cobertura 1.9.4.jar and asm2.2.3.jar in project lib folder in STS workspace.Running using grails test-app -coverage command.When i'm doing this it runs the whole Junit test…
Suseendran P
  • 557
  • 1
  • 5
  • 18
0
votes
1 answer

Sonar Component view and cobertura code coverage report view differ

When I look at my Sonar Components view I see a lot of classes with code coverage. However, when I click the unit test code coverage percentile to retrieve the view of packages from which the percentile is derived from, I only get a subset of the…
user1340582
  • 19,151
  • 35
  • 115
  • 171