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
2 answers

Getting Integration tests code coverage of java project built using TestNG

I wanted to get code coverage of regression tests,which tests java webserver endpoints. Things I have 1. I am having jar file of source 2. Regression code written using TestNG framework. So here, I will run this jar file to run webserver and then I…
Akash Shinde
  • 925
  • 3
  • 14
  • 31
0
votes
1 answer

What is best practice for generating multiple code coverage views of the same project in sonar?

I have a multi-module maven project and want to generate code coverage reports for subsets of the project and track the results using sonar. The project has modules M1, M2 and M3 and I want to generate coverage reports for package foo/** and for…
John Q Citizen
  • 197
  • 3
  • 11
0
votes
0 answers

Jenkins, cobertura plugin on windows, app with minGW32 compiler, what is wrong?

This is my first post here. I have following problem. I wanted to have reports about code coverage using Jenkins Cobertura plugin. The application is written in C++ (MinGW32 compiler) on Windows. To achieve some reports I know, that must compile…
0
votes
1 answer

Code coverage for Selenium runs like we do with Emma and Cobertura for Unit tests?

Is there any way we can do code coverage for Selenium runs like we do with Emma and Cobertura for Unit tests? Tried below Links but they do not support Java 8. I have a web application (war) built on Java 8 and deployed on tomcat 7. I want to do a…
hardy_sandy
  • 361
  • 4
  • 6
  • 13
0
votes
1 answer

Junit failures related to cobertura with multi-module maven project in jenkins

I am getting below test failures when building the multi-module maven project in jenkins. JDK version - 1.8.51 junit - 4.12 org.codehaus.mojo/cobertura-maven-plugin - 2.7 powermock-easymock-release-full - 1.6.2 net.sourceforge.cobertura / cobertura…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

Unable to get Cobertura dependency in Jenkins: No plugin found for prefix 'cobertura' in the current project

For some reason unknown to me, I am unable to get the cobertura plugin dependency via jenkins slave box. I had some proxy issues before but I thought they have been fixed. This is the build error I get: [WARNING] Could not transfer metadata…
mosawi
  • 1,283
  • 5
  • 25
  • 48
0
votes
0 answers

Integrated test coverage reports

I need to generate a final report that is a mix of all the reports from all the projects that i have generated using the maven-site-plugin and cobertura. Below you can find the code in both the build and reporting