Questions tagged [jacoco-maven-plugin]

A maven plug-in which provides the JaCoCo agent to automated tests and allows basic report creation.

This plugin lets the build process load the agent runtime in the pre-test phases, allowing additional configuration in the file, and generate test documentation in the verify phase.

Usage

The Maven plug-in can be included in your build with the following declaration:

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.7.8</version>
</plugin>

To receive a full list of goals and available parameters you can use maven-help-plugin:

mvn help:describe -Dplugin=org.jacoco:jacoco-maven-plugin -Ddetail

More Info

401 questions
0
votes
1 answer

maven - no sources to compile, no tests to run, unable to read execution data file

I want sonar to display the code quality for my project using the jacoco code coverage reports. I am able to generate code coverage reports using jacoco and also an executable file jacoco-ut.exec for my unit tests. When I use jenkins i get following…
0
votes
1 answer

Coverage for Integration Test through Jacoco Agent

There are large number of answers to use jacoco agent and get test coverage report. Most of them has half answers and I am little confused. Here is what I want to do: 1. My Java application is running on some remote server. say IP -…
user2874299
  • 81
  • 1
  • 1
  • 3
0
votes
1 answer

Getting wrong coverage data with jacoco and maven

I have a project using jacoco version 0.7.1.201405082137 and maven 3.0.5. In the project I have some unit tests, and some tests created using arquillian. To distinguish between the unit tests and integration ones, I created two junit categories: one…
Kelly Goedert
  • 1,027
  • 2
  • 11
  • 37
0
votes
0 answers

Switching Maven Project from JDK 1.7 to JDK 1.8

I have updated Jacoco version in my maven project as 0.7.1.201405082137 after that i am getting below error. Java SecurityException: signer information does not match for class…
0
votes
1 answer

SonarQube Java :: JaCoCo Listeners generates huge jacoco.exec report

Ive got a middle to large scaled project with ~150k LOC. Jacoco maven-plugin generates reports on each and every unit test to the file jacoco.exec. So, basically this is the surefire setup in pom.xml:
mschr
  • 8,531
  • 3
  • 21
  • 35
0
votes
1 answer

Need to get only Unit Test Coverage results using SONAR

Is there any way I could JUST get the unit test code coverage results on SONAR. My project is to just focus on the code coverage and not on code issues/violations/rules etc. It would be a big time saver for me. As the project that I am dealing with…
-1
votes
1 answer

Code Coverage for every (different) input data

I want to get the Code Coverage of some simple test, which gets data from a DataProvider. I need the coverage result for each data that runs through the test. For example: if (value != 0) { //do something } if (value == 100) { //do…
-1
votes
1 answer

Make Integraton Test cover all submodules

I do searched for similar topics. But mine issue is different. The background is that I've got an single spring boot project, and it became bigger and bigger. Then I split it into serveral modules following the guide from spring Spring boot -…
-1
votes
1 answer

Jacoco code coverage with Arquillian in Multi module project

Anybody using Jacoco code coverage with Arquillian? My project is a multi module maven project and currently its not showing code coverage of Arquillian tests. Is there any additional changes in Arquillian.xml other than below pom changes? Build and…
Raj
  • 115
  • 8
-1
votes
2 answers

Sonar Report + Multi module maven + Jacoco plugin

I am new to Sonar. I have multi-module maven project. please find the Project structure below -Parent | -Module A | -pom.xml (Module A) | -Module B | -pom.xml (Module B) | -Module C | | | -pom.xml (Module C) | --pom.xml…
-2
votes
1 answer

How to configure Jacoco and Sonar in Maven build tool?

I need to setup the code coverage in SonarQube using Jacoco. For this, I need to use the Maven build tool for building purpose. I would need the code settings for this configuration. Please help me in this regard. SonarQube is running on Remote…
Gopi
  • 107
  • 1
  • 7
1 2 3
26
27