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
0
votes
0 answers

Getting error deploying mvn site:deploy

I have configured my project with cobertura and I'm new to this. I want to deploy mvn site. Since it is a multi module project I first did mvn site:site mvn site:stage Till here I was able to get the site with all the links properly working. But…
Pardha.Saradhi
  • 468
  • 1
  • 10
  • 27
0
votes
1 answer

How can I exclude exclude java files from cobertura report maven

I have some utility classes in my java code. I wanted to exclude it from cobertura report and added exclude tag in my pom.xml. But it doesn't seems to be working. Is there any other way to exclude classes or whole package from the report? …
Nagendra
  • 191
  • 1
  • 3
  • 20
0
votes
1 answer

Maven goals doing cobertura analysis and install

I'm using Jenkins and Maven to build some Java projects. Additionally I'm using Cobertura for coverage analysis. Therefore I've setup a Jenkins Maven build job and configured following goals: clean cobertura:cobertura That's working fine for…
Alex
  • 789
  • 1
  • 12
  • 29
0
votes
2 answers

Cobertura on Jenkins Duplicate Test Runs

I have a build that includes cobertura as part of my Jenkins run. However, I realize now that it is running all my tests twice. I have the project setup as a Maven project in Jenkins. and I had the goal to run set to: clean coberture:cobertura…
Jon
  • 3,212
  • 32
  • 35
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
2 answers

why Jenkins promoting instrumented jar to my repository

I have an issue that Jenkins promoting an instrumented jar file to nexus repository, so when it deploy my application in jBoss in throwing exception Caused by: java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/TouchCollector …
SHAKU
  • 657
  • 5
  • 15
0
votes
1 answer

Issue running cobertura with sonar

While running cobertura with sonar (plugins installed in jenkins), i get the below error. The snippet in pom, error and other details are below. Can anyone please help on ? Thanks in advance. Maven version is 3.0.4. After googling around got the…
bhargav
  • 267
  • 3
  • 8
  • 17
0
votes
0 answers

Cobertura generates lots of errors and no output

I have included Cobertura in my Maven project using this guide. I added the following to my pom.xml: org.codehaus.mojo cobertura-maven-plugin 2.6
Tomáš Zato
  • 50,171
  • 52
  • 268
  • 778
0
votes
0 answers

How to avoid mvn cobertura plugin affecting xpath return type in apache camel route

I am using apache camel 2.12.0 (tried also 2.14.0). I have a route where I receive xml from remote server:
vemod
  • 31
  • 3
0
votes
1 answer

Why is my branch coverage rate and line coverage rate failing?

Consider the following code: @Test public final void testIsUnitInvalidSadCase() { boolean expectedResult = false; boolean actualResult = false; double invalidUnit = 0.0; testFuelUnitValidator = new FuelUnitValidator( …
0
votes
1 answer

cobertura-maven-plugin and cassandra-maven-plugin caused cassandra.rpcPort to be different

I've got the following configuration in my pom.xml org.codehaus.mojo build-helper-maven-plugin 1.8
Tin Ng
  • 937
  • 2
  • 11
  • 25
0
votes
1 answer

Maven - Deploy Cobertura Report to Confluence Wiki

I'm using the plugin called maven-confluence-reporting-plugin in order to deploy my documentation directly on a Confluence Wiki. This is working well and it has been correctly mapped/linked with the default site phase. Basically I followed these…
hublo
  • 1,010
  • 2
  • 12
  • 33
0
votes
1 answer

Cobertura code coverage test on Maven plugin

I'm trying to generate a code coverage report for a simple Maven plugin I've developed. Cobertura generates the report with the three classes in my project correctly, but it reports 0% code coverage even though the tests execute successfully. I've…
0
votes
2 answers

cobertura:check seems to be missing parameters

I'm using cobertura with Maven to generate code coverage reports. We'd like to be able to fail the build when not enough code is covered by test cases. Based on the maven-cobertura-plugin's web page for "check", I configured my pom file like…
FrustratedWithFormsDesigner
  • 26,726
  • 31
  • 139
  • 202