Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
0 replies
29 views

root pom.xml file <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.11</version> <...
Nidhi257's user avatar
  • 997
Advice
2 votes
4 replies
103 views

I am packaging my Spring Boot App with the Spring Boot gradle plugin. tasks.bootBuildImage { builder.set("paketobuildpacks/builder-jammy-full:latest") imageName.set(devImageName) ...
Janning Vygen's user avatar
0 votes
0 answers
64 views

I have a Maven Multi-Module Build. This works fine in the Azure Build Pipeline. Now I try to add CodeCoverage Report. For that I added this to my azure-pipelines.yml - task: PublishCodeCoverageResults@...
user286974's user avatar
0 votes
0 answers
45 views

I am trying to generate Jacoco report for Android kotlin based project. I am using Android Emulator for running androidTests and generate ec file for coverage. But facing following issue all the time. ...
Gaurav Rawal's user avatar
0 votes
1 answer
129 views

The source code is here: https://github.com/yvasyliev/telegram-forwarder-bot/tree/feature/multimodule I have a Gradle multi module project. The sub-modules are: telegram-forwarder-bot (a console ...
Yevhen Vasyliev's user avatar
1 vote
1 answer
94 views

I want to use IntelliJ IDEA Ultimate's "Run with Coverage" on a Spring Boot app to see which lines are executed during manual testing (e.g., hitting an endpoint with Postman). My goal is to ...
jam's user avatar
  • 539
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
1 answer
46 views

I have a repository with multiple projects. There is a project which has all the 'integration-tests' in it. The 'integration-tests' project runs as follows: Checks if a service is up. If service is ...
Noel's user avatar
  • 83
0 votes
1 answer
29 views

How to add exclusions in gitlab pipeline using jacoco with ant for code coverage of java in gitlab? we are not using sonar. Is there any direct command/property to add exclusions in gitlab? just ...
amu's user avatar
  • 1
-1 votes
1 answer
89 views

We have a multi-module Java Maven project structured like this: parent ├── child-1 ├── child-2 └── common There is no code in the parent, and the code and tests are mostly in common. We want to ...
John Little's user avatar
  • 12.8k
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
43 views

I am generating an aggregated jacococ coverage report in a Maven module project like below <build> <plugins> <plugin> <groupId>org.jacoco<...
tuk's user avatar
  • 6,954
0 votes
0 answers
88 views

Environment Bitbucket Data Center v8.17.0 Bamboo 8.2.9 SonarQube v2025.1.1 Current Setup Hi Atlassian Community! I currently have the following workflow implemented: Create Pull Requests in ...
Alex's user avatar
  • 13
0 votes
0 answers
39 views

I am writing Unit test for usecase in kotlin but don't know how to cover missing branch. // ConnectFTPUseCaseImpl // ConnectFTPUseCase interface ConnectFTPUseCase { suspend fun connect(): Result&...
cuong nguyen's user avatar
0 votes
0 answers
114 views

Good afternoon, I'm testing a microservice with Junit and Mockito in Quarkus (a Java framework). I'm also using Jacobo for Covegare. However, the EventRepositoryImplTest class, which simulates ...
Cesar Justo's user avatar
0 votes
0 answers
28 views

We have a multimodule project which has 4 module All IntegrationTest cases are written in a separate module which has no source code only src/test/java folder. All UnitTest are written in other 2 ...
Ashish Purohit's user avatar
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
2 answers
138 views

I am using Gradle in version 8.13. I am using the Gradle JaCoCo Plugin. Besides the default Gradle test task, I have added an additional test task to some of the Gradle subprojects: var ...
Harold L. Brown's user avatar
0 votes
0 answers
542 views

I'm working on a Java project using Maven, and I've been trying to generate a Jacoco code coverage report. However, even though all of my test cases are passing successfully, the generated Jacoco ...
Rach's user avatar
  • 1
-1 votes
1 answer
119 views

I can run my tests with Jacoco test coverage in IntelliJ IDEA, and export them to an HTML file. And IntelliJ IDEA provides an import option for Jacoco XML files, but is there a way to export that XML ...
Ben Ketteridge's user avatar
2 votes
2 answers
158 views

I am stuck in a situation where I am not able to fix the 1 of 6 branches issue. Below is the small code I tried to produce package org.example; public class Testing { public static final String ...
PAA's user avatar
  • 12.2k
0 votes
1 answer
283 views

I'm working on an Android project using Gradle and JaCoCo to generate code coverage reports. Currently, my jacoco.gradle file is configured as follows: apply plugin: 'jacoco' def coverageSourceDirs = ...
Léon Le Breton's user avatar
0 votes
0 answers
219 views

How can we extract the total coverage from JaCoCo? I just need that number to use it for external reporting. I see the coverage total in the Jacoco report (HTML), but do not see it in the jacoco.xml. ...
techjourneyman's user avatar
0 votes
0 answers
226 views

There are lots of answered questions on SO, but I still can't get this to work. I have a multi module Maven project. I followed https://www.baeldung.com/maven-jacoco-multi-module-project to set up ...
berger-devel's user avatar
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
1 answer
168 views

I just integrated Jacoco code coverage for junit and UI test in my android studio project. I added following steps: In my app level build.gradle file: apply plugin: 'jacoco' and then added below code ...
kgsharathkumar's user avatar
5 votes
2 answers
1k views

We would like to see the visual of the Jacoco code coverage report in gitlab. This question is not about cobertura. It seems the feature of displaying Jacoco coverage is now ready, starting gitlab 17....
PatPanda's user avatar
  • 5,418
0 votes
0 answers
91 views

Since two days I am struggling with this issue. I have 4 Microservices all running with Quarkus (for now they are all running with differenct ports on localhost). In a local Maven Module I run ...
Veilchen4ever's user avatar
0 votes
1 answer
44 views

I have a spring app using failsafe and to run IT's by launching the application jar through custom code, and there is no organizational appetite to have it run directly through maven. To get test ...
countinglambdastosleep's user avatar
0 votes
0 answers
40 views

I'm using JaCoCo to measure unit test coverage in my Android project. While analyzing the report, I noticed that the code coverage for my classes is being grouped under the default package instead of ...
Muba's user avatar
  • 23
0 votes
0 answers
19 views

I applied jacoco plugin via init.gradle. What I want to enable is as follows: test without jacoco test with jacoco initscript { repositories { mavenCentral() } } allprojects { ...
Hyewon Seok's user avatar
0 votes
1 answer
124 views

I want to analyze my SpringBoot project with SonarQube. I released the unit test but everything works successfully. The problem is that the coverage is 0%. I added the Jacoco dependency but the ...
mylib's user avatar
  • 9
1 vote
1 answer
349 views

We are expanding our test coverage and attempting to implement the support for code coverage as documented in the readme - https://github.com/karatelabs/karate/tree/master/karate-demo#code-coverage-...
mike's user avatar
  • 713
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
0 answers
54 views

In terminal, mvn verify is returning a test coverage of 0% [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.39 s -- in uk.ac.rhul.cs2800.Cw2ApplicationTests [INFO] Running uk....
EpicGaia's user avatar
0 votes
0 answers
38 views

In my project, we need to generate the jacoco report for the external tests for the application/service deployed in AWS. In local system when making the service up by running the jar using java -jar ...
Chandru's user avatar
1 vote
1 answer
64 views

I have a java program and I'm using jacoco to do coverage analysis. Now I encounter a problem that jacoco treat the line throwing out an exception as unexecuted. For example in the following program: ...
李坤仡's user avatar
0 votes
0 answers
36 views

I am using testng and mockito for integration tests and unit test respectively. I rarely using java8 lambda functions in the project. Still the code coverage showing too many lambda methods with 0% ...
Prasad Parab's user avatar
0 votes
0 answers
50 views

I have a project that contains many modules. In order to accelerate the speed of unit testing, I separated these modules and ran unit testing separately. Then, I hope to merge the results and generate ...
EchoLi's user avatar
  • 23
0 votes
1 answer
33 views

I have a spring-boot project named portal-jup, where the main code is under sub-module portal-jup-biz, and the test code is under sub-module portal-jup-test, I could generate code coverage report ...
Min Chen's user avatar
0 votes
1 answer
51 views

while trying to add the jacoco coverage report to sonarqube, for my multimodule java project (maven). The report was not showing on the sonarqube dashboard. After checking the logs I found this ...
MhmdRizk's user avatar
  • 1,731
0 votes
1 answer
138 views

I am looking for some help generating a code coverage report for Android integration tests in a multi-module project. Specifically I have an app module along with a mix of android and java library ...
Rich Luick's user avatar
  • 2,364
0 votes
1 answer
91 views

We try to use JaCoCo (0.8.12) to collect code coverage information in the Grails (5.3.3) web application compiled for Java11 and running under Tomcat (9.0.88). Following JaCoCo instructions, I tried ...
C.A.B.'s user avatar
  • 583
2 votes
1 answer
72 views

We have integration tests in our app in a self contained module within the project. Similar to the ones in this openliberty tutorial https://openliberty.io/guides/rest-intro.html#testing-the-service ...
Javadee's user avatar
  • 177
0 votes
1 answer
47 views

I want to know my customer how to use my application. for example, i have a spring-web applicaiton. customer call the service 100 times. i want to analyst every time service's execute path. eg. 1 time ...
Eatin's user avatar
  • 21
0 votes
1 answer
135 views

I want to achieve 100% test coverage, but there are always some unreachable branches. How can I make IDEA exclude these unreachable branches from coverage statistics? For example: public static Class ...
FredSuvn's user avatar
  • 2,181
1 vote
0 answers
120 views

Code-snippet- gitlab-ci.yml test: extends: .exec_template stage: test script: - chmod 755 -R build_unit_test.sh - ./build_unit_test.sh coverage: '/Total.*?([0-...
Meenal's user avatar
  • 147
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 vote
0 answers
333 views

Facing issue for JacocoMerge Task Below are version details: Java - 21 Gradle - 8.5 Jacoco - 0.8.11 Below are gradle code `task jacocoMerge(type:JacocoMerge){ destinationFile = file(filePath) ...
Lina's user avatar
  • 315
1 vote
0 answers
52 views

I want to create jacoco code coverage report of my maven project. My Main code present in different maven project and testcases are present in different maven project. I want code coverage report of ...
Rakesh Hazari's user avatar

1
2 3 4 5
39