Skip to main content

All Questions

0 votes
0 answers
285 views

Jacoco maven plugin with maven surefire plugin

I'm trying to generate coverage reports for my integration tests using Maven Surefire Plugin and Maven Jacoco Plugin. According to the documentation, <forkCount> cannot be set to zero. However, ...
Albert Albatros's user avatar
0 votes
2 answers
1k views

How to get code coverage of Rest Assured testcases for my rest endpoints developed in Spring boot?

I am trying to generate jacoco code coverage report for my restassured testcases pointing to the rest end points. I am using springboot application. My controller class looks like : @RestController ...
Sudip Mitra's user avatar
7 votes
0 answers
1k views

Jacoco report aggregate shows 0 coverage even if tests were executed

My maven project directory structure is as follows: parent -child -src/java -src/test <!-- unit tests --> -pom.xml -integration_test -src/test -pom.xml -report -...
Devika Sudheer's user avatar
2 votes
0 answers
321 views

How to get code coverage of servlets using integration tests

I have been trying to get code coverage of actual development code (servlets and others) using integration tests (code coverage is not for integration tests). Tech stack: Java 1.8, Maven 3.3.9 and ...
Sham's user avatar
  • 840
2 votes
2 answers
2k views

Jacoco Maven offline instrumentation - Tomcat

I am trying to get code coverage report for integration tests. Jacoco maven plugin is able to give the code coverage for unit tests , but giving 0% coverage for the integration tests. The integration ...
dmah's user avatar
  • 63
0 votes
1 answer
538 views

Arquillian + jacoco IT coverage

I configured 2 projects to use last jacoco version 0.7.8 and last Arquillian jacoco extension (1.0.09Alpha) it works like a charm (for jenkins and sonar 6.2)! but i have a bigger project, when i ...
cyril's user avatar
  • 957
0 votes
1 answer
454 views

Maven + Jacoco + Arquillian +TestNG IT test = stackoverflowError

I am using the last version of jacoco-maven-plugin (0.7.8) and last version of arquillian-jacoco (1.0.0.Alpha9) but when executing IT test i have a stackOverFlowError in BeforeClass Arquillian (I am ...
cyril's user avatar
  • 957
2 votes
0 answers
747 views

Integration test report with failsafe and jacoco shows 0% coverage

Goal:Use failsafe and jacoco,the two plugins to create integration test report. Issue:The report expected is created but it shows that coverage is 0%. report html Here goes the code in pom.xml about ...
Shao Jackie's user avatar
0 votes
1 answer
4k views

Have integration tests in jacoco-it directory

I have integration tests and they are executed fine, but Jacoco considers them as unit tests. How to tell Jacoco to see them as integration tests and display their graph coverage, not in the jacoco-ut ...
Stephane's user avatar
  • 12.5k
0 votes
1 answer
1k views

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 ...
user2874299's user avatar
14 votes
5 answers
11k views

Integration Test Coverage in SonarQube from JaCoCo Maven plug-in showing 0%

We have a multi-module multi-language maven java project with coverage analysis with jacoco. The main part of the modules is backend (Java code) with a REST API and our webapp module contains the ...
Michael K.'s user avatar
  • 2,402