412
questions
0
votes
1
answer
67
views
Child module CCReport43F6D5EF not found when using azure pipelines task Maven@4
We are migrating to from Maven@3 task to Maven@4 see here. This works fine for most repositories, except for the multi model repository. This give me then the following error:
[ERROR] [ERROR] Some ...
0
votes
0
answers
18
views
SonarQube Jacoco Coverage Showing 0 after importing scala module dependency in Java Springboot App (Strange..)
We have Spring boot Java App. Jacoco coverage is showing zero in SonarQube when I import scala module(uses scoverage) as dependency. If I remove this dependency, it works perfectly fine in SonarQube. ...
-1
votes
1
answer
87
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. ...
0
votes
0
answers
22
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=...
0
votes
1
answer
66
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 ...
0
votes
0
answers
154
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%. ...
1
vote
1
answer
337
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 ...
0
votes
1
answer
207
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 ...
0
votes
0
answers
67
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 ...
0
votes
1
answer
148
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 ...
0
votes
0
answers
40
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 ...
0
votes
0
answers
84
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 ...
0
votes
0
answers
65
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 ...
1
vote
0
answers
100
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/...
0
votes
0
answers
55
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 ...