Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
66 views

We are using the Jacoco maven plugin to generate the code coverage for some Quarkus project. It has worked fine so far, but recently we have had some occurrences of an intermittent issue on some of ...
Pampa Nello's user avatar
0 votes
0 answers
54 views

I know I can exclude classes from the Jacoco report via the application.properties with quarkus.jacoco.excludes but is there a way to exclude it with the configuration you can set via jacoco maven ...
Nico's user avatar
  • 139
0 votes
0 answers
60 views

I'm trying to create a jacoco report on our project The project is in java 17 version and the jacoco-maven-plugin is on version 0.8.8.In the target folder the jacoco.exec file gets created. But the ...
vr3w3c9's user avatar
  • 1,148
0 votes
0 answers
30 views

ParentModule - POM MainModule - POM - Few Classes and (All Junits - MainModule + SubModule) SubModule - POM - All Service Classes (No Junits) SonarQube Server shows Junit test coverage for Mainmodule ...
Ashok B's user avatar
  • 11
0 votes
0 answers
114 views

This is my folder structure: - src - main - java - com.chintan.project - src-gen - com.chintan.project Is there a way to exclude the classes of package com.chintan.project which ...
Chintan Jagad's user avatar
0 votes
1 answer
291 views

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 ...
Joost Luijben's user avatar
-1 votes
1 answer
1k views

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
  • 868
0 votes
1 answer
404 views

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
1 vote
0 answers
496 views

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
1k views

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
767 views

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
1 answer
369 views

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
56 views

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
120 views

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
1 vote
0 answers
201 views

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
1 answer
275 views

I have project structure goes like this myProject app module1 submodule pom.xml pom.xml automation component-tests pom.xml pom.xml ...
liotur's user avatar
  • 923
0 votes
0 answers
486 views

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
4 votes
3 answers
4k views

I do use PublishCodeCoverageResults@2 task in my Azure DevOps pipeline - task: PublishCodeCoverageResults@2 inputs: codeCoverageTool: 'JaCoCo' summaryFileLocation: '$(System....
Splioo's user avatar
  • 592
0 votes
0 answers
373 views

I created a simple spring-boot application to demonstrate the issue after I faced a similar issue in my product code and explained the problem using the Dummy project. I used testNg for writing unit ...
Manoj Madushanka's user avatar
4 votes
1 answer
11k views

I'm trying to get rid of the following warning message: OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended It appears ...
Loïc DUBOIS-TERMOZ's user avatar
2 votes
0 answers
6k views

I am upgrading my spring boot microservice from Java11 to Java17, service build and run successfully with use of maven. I have added jacoco-maven-plugin plugin for unit test cases coverage but when I ...
Piyush Chaudhari's user avatar
-1 votes
1 answer
719 views

I recently upgraded my project from Java 8 to 11. For the dependency of Jacoco, i upgraded jacoco-maven-plugin from version 0.7.6.201602180812 to 0.8.7 After that, my Sonar code coverage becomes 0. ...
Oragon's user avatar
  • 7
0 votes
0 answers
2k views

I am trying to do a jacoco-aggregate to send it to sonarqube according to this post: https://community.sonarsource.com/t/coverage-test-data-importing-jacoco-coverage-report-in-xml-format/12151 ...
HelloWorld888's user avatar
0 votes
1 answer
282 views

I would like to add a coverage report in my maven site website in the case of a multi-modules project. I found how to have an aggregated coverage report in a module created just to for that. see . But ...
nizery's user avatar
  • 43
0 votes
0 answers
133 views

USE CASE I have developed a spring-shell based maven module apim-library. And then I developed an application apim-cli which has apim-library as a dependency and only the Application class with main. ...
Denis Berretti's user avatar
2 votes
1 answer
2k views

In my multi-module project I have a code and tests in separate modules. When I run maven command 'mvn clean install -DskipTests=false', jacoco.exec file is generated in test module but Jacoco ...
mrKaczorrro's user avatar
1 vote
0 answers
899 views

Appended Jacoco plugin by referring to Karate document's POM.xml under ** Code Coverage using Jacoco section**. However, the coverage reports are not getting generated for feature files mentioned in ...
sri's user avatar
  • 33
1 vote
1 answer
242 views

Having separate java projects (non-multi module projects) with jacoco code coverage reports are generated separately using maven. Each one having its own target\jacoco.exec coverage file and Html ...
Hussain Ashruf's user avatar
0 votes
1 answer
271 views

I have a project using jacoco-maven-plugin + maven-surefire-plugin + Mockito: There is nothing special with configuration: <plugin> <groupId>org.apache.maven.plugins</...
NickNgn's user avatar
  • 368
2 votes
0 answers
1k views

I am trying to take out sonar coverage of my code but the coverage is coming as 0 %. Earlier, tests were also coming as 0 , but it got resolved after adding junit-vintage-engine library. But the code ...
HMT's user avatar
  • 2,281
0 votes
1 answer
692 views

So when I execute mvn clean verify my code coverage is 64% for lines coverage and 62% for branch coverage. But in sonarqube my code coverage is 70%: Where is that difference coming from? I do not ...
djasyfuj's user avatar
  • 103
0 votes
1 answer
121 views

I am running a maven project and everything works fine except for code coverage reports . I am using surefire plugin and jacoco. Surefire plugin shows tests as 0 and codecoverage in jacoco report also ...
user2636464's user avatar
1 vote
1 answer
456 views

We need to use AspectJ compile time weaving and that is creating the AjcClosure classes. Somehow the package weaving is not working for us. We need to exclude these AjcClosure classes from the ...
tarini sunil's user avatar
1 vote
1 answer
411 views

[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.7.1:deploy (package-server) on project my-service: Cannot invoke "java.io.File.getCanonicalPath()" because "...
Cees Timmerman's user avatar
0 votes
2 answers
2k views

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
1 vote
0 answers
1k views

My project is divided into multiple modules according to functions. - rain - rain-common - rain-service - rain-application rain-application Depends on rain-common and rain-service, is a spring-...
Wei's user avatar
  • 571
0 votes
1 answer
2k views

Our report generation was working fine before we made some changes. Now, I am not at all able to make it work, I have tried all solutions which I can find. This is our older code : <...
Onki's user avatar
  • 2,115
2 votes
3 answers
2k views

There is something strange going on with my jacoco configuration and I am not able to figure it out. I have visited multiple threads on stack overflow and other platforms and tried many thing, but ...
Lokesh Pandey's user avatar
0 votes
1 answer
762 views

I am using jacoco in my spring boot project. My issues is that compiler generate default constructor and jacoco gives coverage issue for this default constructor, how can I exclude this default ...
Ameer khan's user avatar
2 votes
0 answers
203 views

I have a project with spring-boot 2, JUnit 4, jacoco 0.8.6 and I use maven to run unit test, I have the following class: @Component public class AccountVOValidator implements FormValidator<...
Efrain Cortes's user avatar
0 votes
1 answer
376 views

I have a maven project and the below step is mentioned right after executing surefire tests(for JUnit) and failsafe (for Integration tests). However, I am not able to exclude the files from generated-...
Ankit Singh's user avatar
5 votes
2 answers
2k views

According to Quarkus Documentation, to have JaCoCo considering test classes that aren't annotated with @QuarkusTest, the only thing we need to do is to configure the jacoco plugin to execute the goal ...
Manollo Guedes's user avatar
4 votes
0 answers
729 views

I have a maven module containing code but no tests. Tests are in another module. code-module test-module I use JaCoCo to report about the code coverage, but it seems that no JaCoCo report is ...
neXus's user avatar
  • 2,303
0 votes
0 answers
888 views

I am trying to run some tests and generate a JaCoCo coverage report on a project and keep getting this error. Here is my error log: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-...
seaiam's user avatar
  • 41
3 votes
1 answer
6k views

When I run individual test classes, it shows 100% coverage where as when I taken maven build for whole project then Jacoco report showing wrong coverage percentage for many classes. Is there a way to ...
Lavanya Namburi's user avatar
1 vote
0 answers
111 views

Example 1: jacoco:report-aggregate says: Attributes: * Requires a Maven project to be executed. I've stumbled trying to use the "report-aggregate" goal, as it works only if unit tests are ...
Nishi's user avatar
  • 10.8k
2 votes
1 answer
317 views

Let's say I have a project with 2 modules, and 3 pom.xml files (1 for Module A, 1 for Module B, 1 parent pom.xml) I've added the following plugin that verifies the code coverage diff between my ...
Koopa's user avatar
  • 23
1 vote
1 answer
2k views

I am trying to build a maven project but its giving me below error. java.lang.NoClassDefFoundError: org/jacoco/core/runtime/AgentOptions [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0....
Peter's user avatar
  • 523
1 vote
1 answer
4k views

I am seeing code coverage as zero in jenkins plugin. I am using Jacoco 0.8.7 in client server mode. Client is Jenkins and server(jacoco agent jar is present here) is a VM. This was not happening when ...
Mehul Parmar's user avatar
2 votes
1 answer
4k views

I am using maven-jacoco-plugin for generating the test coverage. Version used is 0.8.7. When running the mvn test command, it's generating the report in exec format. <plugin> <groupId>...
Scientist's user avatar
  • 1,474

1
2 3 4 5
9