Questions tagged [maven-cobertura-plugin]

This tag is for questions related to the maven plugin that executes the Cobertura code coverage utility.

This tag is for questions related to the maven plugin that executes the Cobertura code coverage utility. It can generate a report about the coverages of junit tests in your project.

79 questions
4
votes
3 answers

Cobertura coverage ignore annotation in maven project?

I am trying to exclude certain methods from Unit test coverage. I am using Cobertura because I found out that since version 2.0 they introduced a coverage ignore annotation for excluding methods and classes:…
4
votes
1 answer

Cobertura Java7 try with resource

i'm using cobertura 2.6 with maven on java 1.7 org.codehaus.mojo cobertura-maven-plugin 2.6
wutzebaer
  • 14,365
  • 19
  • 99
  • 170
2
votes
1 answer

Failing to get 100% coverage

I am working with spring and using mvn site to check my test coverage and app dependency convergence, I am getting [Error] Error You do not have 100% convergence. Dependencies used in modules org.slf4j:slf4j-api 1.7.25 …
valik
  • 2,014
  • 4
  • 24
  • 55
2
votes
0 answers

Cobertura is not showing proper coverage for few classes

org.apache.maven.plugins maven-surefire-plugin 2.19.1 -noverify
SurajHolla
  • 31
  • 5
2
votes
0 answers

Maven Surefire Plugin Parallel Test Execution - Classes missing from Cobertura Coverage Report

I have a Spring MVC project where I have configured surefire to run tests in parallel using the below options. 3 true But, after I run the tests with 3 forks, my cobertura coverage report will not…
2
votes
3 answers

Cobertura: Error reading file cobertura.ser: null java.io.EOFException: null

I have been working on Cobertura for couple months and recently I'm getting an error saying that "Error Reading .ser file" from particular target location.Does anyone has idea why am I getting the below error: Cobertura maven plugin version:2.7 Java…
Praveen Kumar Mekala
  • 628
  • 1
  • 10
  • 26
2
votes
2 answers

cobertura parsing error(cobertura.javancss.parser.ParseException)

I am fairly new to deployment and code coverage issues and now i have a problem ,my application uses cobertura maven plugin 2.7 and covertura version 2.1.1 and java 8. I am getting an error while running my deployment in the cobertura report [ERROR]…
sg28
  • 1,363
  • 9
  • 19
2
votes
0 answers

Using cobertura's line coverage for CUSTOM test code in a maven build

I have a some 'custom code' that runs during the maven project build. I would like to use cobertura's line coverage feature to generate report of the executed lines of my 'custom code' for a build. What I have achieved so far: I am using the maven…
2
votes
2 answers

netbeans cobertura report shows 0% coverage

Set up new maven project with cobertura It runs fine, classes getting instrumented and generates html report but netbeans shows 0% coverage, the view never refreshes 2.1.1
Kalpesh Soni
  • 6,879
  • 2
  • 56
  • 59
2
votes
1 answer

Cobertura check fails when maven run with Cobertura report and install goals

I have Cobertura setup as following in my pom: ... ... ... org.codehaus.mojo cobertura-maven-plugin ${cobertura-maven-plugin.version}
James
  • 1,237
  • 4
  • 22
  • 43
2
votes
6 answers

Error when trying to use org.codehaus.mojo:cobertura-maven-plugin:2.6

I'm trying to use the Cobertura maven plugin for code coverage. But I am getting an error when running the following command: mvn clean package cobertura:cobertura -Dcobertura.report.format=xml Here is how I have the plugin defined in my…
arnieSamich
  • 41
  • 1
  • 1
  • 7
1
vote
1 answer

how do I make mvn cobertura:cobertura not run more tests than mvn test

I'm working on a project that uses the CEF DSS library to handle digital signatures. This library comes with a large test suite, which obviously we're not interested in and thus it isn't run on mvn test. We wanted to create code coverage reports for…
Wouter Verhelst
  • 1,269
  • 1
  • 12
  • 27
1
vote
1 answer

What is the meaning of red check mark at class declaration level in Cobertura Maven Plugin report?

I have a project with several tests and Cobertura Maven Plugin. All works fine but one Class with its test are driving me crazy. This is the cobertura report with 83% of line coverage: And this is the basic test: import static…
JRichardsz
  • 14,356
  • 6
  • 59
  • 94
1
vote
0 answers

Cobertura not generating coverage report after mvn clean install

In my spring based multi-module maven project i want to generate cobertura code coverage report after running mvn clean install . Below is the part of cobertura maven-plugin of pom.xml which i am using false
Ankit
  • 81
  • 2
  • 10
1
vote
1 answer

Cobertura+Failsafe: make "mvn clean site" proceed even if an integration test fails

I have a Java8/Maven/Spring Boot project involving the maven-failsafe-plugin (in order to run integration tests in *IT.java, separately from unit tests in *Test.java) and cobertura-maven-plugin. The issue is that mvn clean site fails to conclude if…
ErikMD
  • 13,377
  • 3
  • 35
  • 71