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
1
vote
1 answer

Goal "cobertura:instrument" in Cobertura Maven Plugin

What might be some real use case to invoke cobertura:instrument goal from Cobertura Maven Plugin? I know that it just instruments classes, but when it may be preferred over cobertura:cobertura or cobertura:check?
1
vote
1 answer

Cobertura 2.7 and Java 1.8 -issues with Junit 4 test cases-Exception

I am using cobertura-maven-plugin-2.7 and I am getting an error when I do a maven build. But when I run the Junit test case independently it is successfully executed. Environment: Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;…
1
vote
0 answers

Combining dashboard report of multiple projects in maven

I am using mvn dashboard plugin to create the dashboard of surefire and cobertura test reports. I have 2 projects and it is creating two different dashboards for two different projects. How i can combine these two dashboard report into one in…
1
vote
2 answers

Maven with Cobertura and findbugs - tests are running twice

So I have Jenkins with the Cobertura plugin installed. I have Cobertura and findbugs in the POM and my tests are running twice... I assume that this is because Cobertura instruments the bytecode and this causes the tests to re-run, which isn't a bad…
user2405469
  • 1,953
  • 2
  • 22
  • 43
1
vote
0 answers

how to configure Jenkins Cobertura not to give instrumented package?

Jenkins along with Cobertura using Maven deploying instrumented jar file to my repository. I don't want an instrumented jar in my application. So anybody know how to handle this in jenkins/Cobertura/Maven? I found that if in Jenkins I change the…
SHAKU
  • 657
  • 5
  • 15
1
vote
1 answer

Maven Cobertura plugin generating incomplete coverage report

I'm using: mvn cobertura:cobertura to generate a coverage report for a project. This isn't actually configured in the pom.xml file, so it's just using the latest version of the plugin (currently 2.6). For the most part this works ok, but for some…
John Montgomery
  • 8,868
  • 4
  • 33
  • 43
1
vote
1 answer

cobertura-maven-plugin 2.6 is used despite 2.7 is configured

I have this section in my POM: org.codehaus.mojo cobertura-maven-plugin 2.7
WonderCsabo
  • 11,947
  • 13
  • 63
  • 105
1
vote
1 answer

Cobertura-report generation with maven plugin

I did instrumentation of code and war file successfully deployed into the tomcat container. I am running my client tests on it.After successful run of the tests on it when I am shutting down my tomcat instance there is Cobertura.ser file in the bin…
Satyam Koyani
  • 4,236
  • 2
  • 22
  • 48
1
vote
0 answers

Cobertura Maven Code Coverage Static Nested ClassTests

Has anyone been successful using JUnit's Enclosed runner with the cobertura maven plugin? I've looked at the plugin documentation and some searching but I've been unable to determine how to configure the plugin to recognize tests in static nested…
Sean Carroll
  • 2,651
  • 2
  • 24
  • 21
1
vote
1 answer

Multimodule Maven project: Separate module for integration test: Code coverage

I have a multimodule maven project with modules such as: moduleA, moduleB, moduleC. Then I have an entirely separate moduleTest that has integration tests in it run by the failsafe plugin. I want to have a report generated by cobertura(or any other…
SamSam
  • 11
  • 2
1
vote
1 answer

Cobertura 2.0.3 and Sonar not showing code coverage

I am trying to get Cobertura code coverage to work for a multi-package project. I had to update from 2.5.2 to 2.6 to work correctly with JDK 1.7 and now I am able to run and create cobertura code coverage reports. The files for the project are…
0
votes
0 answers

cobertura does not read all test cases

i have encoutered a problem where cobertura report does not cover all test cases, and i could not find a satisfactory answer on internet. i have a main class: public class SomeClass { public Somereturn method1(){ //Something doing here …
Akhil Kumar
  • 140
  • 1
  • 9
0
votes
0 answers

Maven Cobertura Ignore Trivial from Commandline

Hello Guys is there any way to set ignore Trival True (Cobertura) from Commandline? Pom Example: org.codehaus.mojo cobertura-maven-plugin 2.6
backup backup
  • 131
  • 2
  • 11
0
votes
1 answer

Cobertura integration test support was released with... debug mode enabled?

I'm trying to put to work the coverage numbers for my integration tests. I'm using the plugin cobertura. I'm using the 2.7 version (last version) they released the support for integration tests. I put to work, the final report is correct. But when I…
Dherik
  • 17,757
  • 11
  • 115
  • 164
0
votes
0 answers

Integration tests getting skipped using cobertura

I could see my Integration test cases are getting skipped when I execute below command.Could you tell me how to get code coverage report using Cobertura (ver 2.7) for UT and IT cases in Jenkins (ver. 1.631) for a Multi Module Maven (ver. 3.3.9)…
asur
  • 1,759
  • 7
  • 38
  • 81