Skip to main content

Questions tagged [jacoco-maven-plugin]

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

jacoco-maven-plugin
-1 votes
0 answers
9 views

JaCoCo always generates aggregate report in a non-module project, won't display coverage in Maven Site

I have a single Java 11 library (jar) project whose Maven pom refers to a parent pom for common properties and configuration. There are no submodules and the parent pom doesn't have any submodules. ...
dan's user avatar
  • 813
0 votes
0 answers
9 views

getting the jacoco.exec file as 0kb , nothing capture in the exec file . Nothing capture in jacoco.exec

I started my application with jacocoagent like this start.sh file :(start.sh & jacocoagent & application.jar present in same location) export JAVA_OPTS="-javaagent:jacocoagent.jar=...
Rakesh Hazari's user avatar
-2 votes
1 answer
37 views

SonarQube - Maven Jacoco Error - Cannot import coverage information for file, java.lang.IllegalStateException: Line 70 is out of range in the file

I am getting below error in SonarQube(version -SonarScanner CLI 6.0.0.4432 SonarQube Server version 10.6.0.92116) build. 15:06:52.321 INFO Importing 10 report(s). Turn your logs in debug mode in ...
Nidhi257's user avatar
  • 919
0 votes
1 answer
21 views

How to exclude certain classes form code coverage calculations using jacoco?

I am trying to instrument code coverage for my Quarkus application. When running mvn clean install everything works fine and code coverage is shown as expected and the classes are excluded. But when ...
Sergio Agüero's user avatar
0 votes
0 answers
57 views

Zero percent test coverage after upgrading to Springboot 3

we have recently started upgrading our systems to Springboot 3. For some reason, all my Junits are showing a Test coverage of 0% in sonarqube whereas the threshold to pass the pipeline build is 80%. ...
user2176576's user avatar
1 vote
1 answer
174 views

Kotlin 1.9.2, jdk 21 (Spring boot) Jacoco (plugin 0.8.12) is complaining about missing branches

I have run into a jacoco code coverage issue where it complains about missing branches for the kotlin coroutines function withContext(Dispatchers.IO) event though all branches are covered. Nothing ...
ROUISSI Mohamed ALi's user avatar
0 votes
1 answer
122 views

Sonarqube code coverage remains 0% after configuring Jacoco

I have followed the instructions on Jacoco docs and soanrqube docs. I have my sonar server running on a self hosted runner. I have left the param sonar.coverage.jacoco.xmlReportPaths on Sonar UI empty ...
Ksushant881's user avatar
0 votes
0 answers
46 views

Ignore RestController and DTO files from jacoco coverage report

I am trying to use the jacoco exclude filter to filter out Controllers and DTO classes from coverage report. All controllers have the file format: *Controller.java and all dto files *Dto.java so I ...
MBD's user avatar
  • 136
0 votes
1 answer
101 views

Jacoco issue in quarkus:dev after Quarkus upgrade from 2.16.12 to 3.8.3

I just migrated quarkus from 2.16.12 to 3.8.3 (java 17) and the output of quarkus:dev shows now numerous java.lang.ClassNotFoundException: org.jacoco.agent.rt.internal_aeaf9ab.Offline End of the ...
nbe's user avatar
  • 1
0 votes
0 answers
37 views

Get control flow information with JaCoCo

Looking for a way to retrieve control flow information, such as local variables and their values and which instructions/branches were executed for the tested methods using JaCoCo (0.8.11). I am ...
Arseni's user avatar
  • 11
0 votes
0 answers
65 views

Unable to generate code coverage for integration test module using jacoco

I have a maven project with the attached directory structure. It contains a parent.pom and two modules. plugin 1.1 It contains the actual source code inside src/main 1.2 It contains the unit test ...
Avyukt Sharma's user avatar
0 votes
0 answers
50 views

why running jacoco 0.8.8 with junit 5 does not generate the jacoco files

we have jacoco v0.8.8 and junit5 (jupiter) on maven 3.5.4 when we are running the mvn build with tests on our java files we see the tests are running but we dont see on the project target area that ...
Ariel Lieberman's user avatar
1 vote
0 answers
80 views

Maven surefire fails with ClassNotFoundException: InPluginProcessDumpSingleton

After upgrading to openjdk 17, test cases are failing with error Exception in thread "closer-shutdown-hook" java.lang.NoClassDefFoundError: org/apache/maven/plugin/surefire/booterclient/...
Abhinav manthri's user avatar
0 votes
0 answers
43 views

Jacoco Integration test report, getting error as Source file was not found during generation of report

In our Maven Multimodule project, I am running the application in local. Jacoco-it.exec file got generated. I am trying to generate the html file to view the integration test report, using the below ...
Murugesh Subramaniam's user avatar
0 votes
0 answers
43 views

maven build/verify scanning class but not showing in coverage report

Trying to generate jacoco code coverage report , test class is getting scanned but getting below warning : [WARNING] Classes in bundle '<module_name>' do not match with execution data. For ...
Gunjan SHrivastava's user avatar

15 30 50 per page
1
2 3 4 5
28