# \#jacoco

**URL:** https://community.sonarsource.com/tag/jacoco/80.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [JaCoCo error since upgrading to version 26.1 from 25.9](https://community.sonarsource.com/t/jacoco-error-since-upgrading-to-version-26-1-from-25-9/178179)

<div class="topic-metadata">

**Author:** [@Trilorian](https://community.sonarsource.com/u/Trilorian)\
**Replies:** 1\
**Last updated:** [February 24, 2026, 8:38am UTC](https://community.sonarsource.com/t/jacoco-error-since-upgrading-to-version-26-1-from-25-9/178179 "2026-02-24T08:38:51Z")

</div>

We have upgraded from SonarQube Server version 25.9 to 26.1 and since the upgrade, no test coverage is shown in analyses. We normally see this in our the analyses logs: 16:11:25.618 INFO Sensor JaCoCo XML Report Impor…

---

## [JaCoCo error since today](https://community.sonarsource.com/t/jacoco-error-since-today/177119)

<div class="topic-metadata">

**Author:** [@phiedw](https://community.sonarsource.com/u/phiedw)\
**Replies:** 5\
**Last updated:** [February 2, 2026, 6:51pm UTC](https://community.sonarsource.com/t/jacoco-error-since-today/177119 "2026-02-02T18:51:49Z")

</div>

Hi, Since this afternoon we are having issues on multiple projects using JaCoCo. The coverage does not show up on SonarCloud. When looking at the logs of the github action, we get this error message for all the modules…

---

## [Cannot see the combined report for all modules in my Android multi-module project](https://community.sonarsource.com/t/cannot-see-the-combined-report-for-all-modules-in-my-android-multi-module-project/147260)

<div class="topic-metadata">

**Author:** [@zimmer550](https://community.sonarsource.com/u/zimmer550)\
**Replies:** 1\
**Last updated:** [August 23, 2025, 5:42pm UTC](https://community.sonarsource.com/t/cannot-see-the-combined-report-for-all-modules-in-my-android-multi-module-project/147260 "2025-08-23T17:42:00Z")

</div>

libs.versions.toml: \[versions\] sonarVersion = "6.2.0.5505" \[plugins\] sonarPlugin = { id = "org.sonarqube", version.ref = "sonarVersion" } project-level build.gradle.kts: import org.sonarqube.gradle.SonarExtension pl…

---

## [Not able to upload JaCoCo report to SonarQube Cloud for my Gradle project](https://community.sonarsource.com/t/not-able-to-upload-jacoco-report-to-sonarqube-cloud-for-my-gradle-project/144521)

<div class="topic-metadata">

**Author:** [@yvasyliev](https://community.sonarsource.com/u/yvasyliev)\
**Replies:** 3\
**Last updated:** [July 18, 2025, 2:50pm UTC](https://community.sonarsource.com/t/not-able-to-upload-jacoco-report-to-sonarqube-cloud-for-my-gradle-project/144521 "2025-07-18T14:50:38Z")

</div>

I’ve got a Gradle project imported into Sonar Cloud - telegram-forwarder-bot. Project’s source code is here - yvasyliev/telegram-forwarder-bot. According to Adding coverage in a Gradle project guide, I added jacoco and…

---

## [Recommended jacoco config not producing reports: Skipping JaCoCo execution due to missing execution](https://community.sonarsource.com/t/recommended-jacoco-config-not-producing-reports-skipping-jacoco-execution-due-to-missing-execution/142918)

<div class="topic-metadata">

**Author:** [@nutmix](https://community.sonarsource.com/u/nutmix)\
**Replies:** 11\
**Last updated:** [June 23, 2025, 12:24pm UTC](https://community.sonarsource.com/t/recommended-jacoco-config-not-producing-reports-skipping-jacoco-execution-due-to-missing-execution/142918 "2025-06-23T12:24:13Z")

</div>

We have a multimodule java maven project like this: parent child 1 child 2 common We would like a code coverage report per sub module (not one global one for the entire project). this page: Java test coverage | Sona…

---

## [Java coverage reported as 0%](https://community.sonarsource.com/t/java-coverage-reported-as-0/138032)

<div class="topic-metadata">

**Author:** [@mmtn](https://community.sonarsource.com/u/mmtn)\
**Replies:** 5\
**Last updated:** [April 2, 2025, 12:22pm UTC](https://community.sonarsource.com/t/java-coverage-reported-as-0/138032 "2025-04-02T12:22:06Z")

</div>

Hi all; I can see this is asked multiple times but I wasn’t able to find a solution to this still. I followed the guideline here and set up the project accordingly but coverage somehow is not being reported. Some Basic…

---

## [How to upload Test Coverage, JaCoCo, Multi Module, Android](https://community.sonarsource.com/t/how-to-upload-test-coverage-jacoco-multi-module-android/137992)

<div class="topic-metadata">

**Author:** [@waffiqaziz](https://community.sonarsource.com/u/waffiqaziz)\
**Replies:** 3\
**Last updated:** [March 31, 2025, 4:34pm UTC](https://community.sonarsource.com/t/how-to-upload-test-coverage-jacoco-multi-module-android/137992 "2025-03-31T16:34:24Z")

</div>

Hi, I need help about how to upload test coverage. Currently my configuration: // build.gradle.kts (project root) plugins { ... id("org.sonarqube") version "6.0.1.5171" } sonar { properties { property("sonar…

---

## [Coverage reports are empty in Maven multi-module project](https://community.sonarsource.com/t/coverage-reports-are-empty-in-maven-multi-module-project/133241)

<div class="topic-metadata">

**Author:** [@meletis](https://community.sonarsource.com/u/meletis)\
**Replies:** 3\
**Last updated:** [January 9, 2025, 8:29pm UTC](https://community.sonarsource.com/t/coverage-reports-are-empty-in-maven-multi-module-project/133241 "2025-01-09T20:29:21Z")

</div>

Hi! We are using Jacoco’s aggregated report for a Maven multi-module project as described in Java test coverage | SonarQube Server Documentation, also including the “…/” fix for the sonar.coverage.jacoco.xmlReportPaths …

---

## [Code Coverage showing 0 for some files](https://community.sonarsource.com/t/code-coverage-showing-0-for-some-files/126084)

<div class="topic-metadata">

**Author:** [@ankitthakkar](https://community.sonarsource.com/u/ankitthakkar)\
**Replies:** 5\
**Last updated:** [September 25, 2024, 2:43pm UTC](https://community.sonarsource.com/t/code-coverage-showing-0-for-some-files/126084 "2024-09-25T14:43:29Z")

</div>

I’m facing code coverage issues with Hybris ANT. I’m performing the following steps: Created the jacoco.exec file using jacocoagent.jar. Generated the jacoco.xml report using the jacoco.exec file created in step 1. Ran…

---

## [Having difficulty setting up code coverage for a new project](https://community.sonarsource.com/t/having-difficulty-setting-up-code-coverage-for-a-new-project/118516)

<div class="topic-metadata">

**Author:** [@in2i2on](https://community.sonarsource.com/u/in2i2on)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 6:44am UTC](https://community.sonarsource.com/t/having-difficulty-setting-up-code-coverage-for-a-new-project/118516 "2024-07-08T06:44:42Z")

</div>

I’m very new to setting up SonarCloud with code coverage. My project seems to be setup correctly(spring-boot, maven project with jacoco) and I see the coverage reporting when I run it locally, but it isn’t showing up in …

---

## [Maven sample does not work with JUnit 5 - Zero coverage](https://community.sonarsource.com/t/maven-sample-does-not-work-with-junit-5-zero-coverage/23230)

<div class="topic-metadata">

**Author:** [@Derek](https://community.sonarsource.com/u/Derek)\
**Replies:** 5\
**Last updated:** [June 19, 2024, 1:49pm UTC](https://community.sonarsource.com/t/maven-sample-does-not-work-with-junit-5-zero-coverage/23230 "2024-06-19T13:49:28Z")

</div>

Starting with the sample at https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner-maven/maven-multimodule Change the dependency from JUnit 4 to JUnit 5 \<dependency\> \<groupId\>org.junit.…

---

## [Load coverage data for Java using SonarScanner CLI](https://community.sonarsource.com/t/load-coverage-data-for-java-using-sonarscanner-cli/114970)

<div class="topic-metadata">

**Author:** [@Ivan\_Ribakov](https://community.sonarsource.com/u/Ivan_Ribakov)\
**Replies:** 7\
**Last updated:** [June 7, 2024, 2:02pm UTC](https://community.sonarsource.com/t/load-coverage-data-for-java-using-sonarscanner-cli/114970 "2024-06-07T14:02:27Z")

</div>

ALM used: GitHub CI system used: Github Actions Scanner command used:$ sonar-scanner -Dsonar.projectVersion=1.64.4 -X -Dsonar.branch.name=feature/foo-bar Languages of the repository: primarily Java Error observed: Br…

---

## [Jacco xml file not found in gitlab ci](https://community.sonarsource.com/t/jacco-xml-file-not-found-in-gitlab-ci/114902)

<div class="topic-metadata">

**Author:** [@Omar.Salem](https://community.sonarsource.com/u/Omar.Salem)\
**Replies:** 2\
**Last updated:** [May 9, 2024, 11:28pm UTC](https://community.sonarsource.com/t/jacco-xml-file-not-found-in-gitlab-ci/114902 "2024-05-09T23:28:57Z")

</div>

Setup: Java 11, maven, multi module project Sonar v10.5 Developer edition Project structure: -Parent -pom.xml -.gitlab-ci.yml -moduleA -moduleB -jacoco-coverage-aggregate Problem: sonar not picking up generate…

---

## [Sonarqube code coverage remains 0% after configuring Jacoco](https://community.sonarsource.com/t/sonarqube-code-coverage-remains-0-after-configuring-jacoco/114795)

<div class="topic-metadata">

**Author:** [@sushant-dev01](https://community.sonarsource.com/u/sushant-dev01)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 1:43pm UTC](https://community.sonarsource.com/t/sonarqube-code-coverage-remains-0-after-configuring-jacoco/114795 "2024-05-06T13:43:07Z")

</div>

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 as it was mentioned…

---

## [I am getting 0% code coverage with java 17 options that I need to use to use reflection](https://community.sonarsource.com/t/i-am-getting-0-code-coverage-with-java-17-options-that-i-need-to-use-to-use-reflection/111149)

<div class="topic-metadata">

**Author:** [@purvi\_ijantkar](https://community.sonarsource.com/u/purvi_ijantkar)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 2:39pm UTC](https://community.sonarsource.com/t/i-am-getting-0-code-coverage-with-java-17-options-that-i-need-to-use-to-use-reflection/111149 "2024-03-19T14:39:28Z")

</div>

I am using java 17 options shown in the below pom.xml .

---

## [Gradle multi-project: how do I get sub-project B's code covered by sub-project A's tests?](https://community.sonarsource.com/t/gradle-multi-project-how-do-i-get-sub-project-bs-code-covered-by-sub-project-as-tests/112541)

<div class="topic-metadata">

**Author:** [@donahchoo](https://community.sonarsource.com/u/donahchoo)\
**Replies:** 2\
**Last updated:** [April 5, 2024, 3:23am UTC](https://community.sonarsource.com/t/gradle-multi-project-how-do-i-get-sub-project-bs-code-covered-by-sub-project-as-tests/112541 "2024-04-05T03:23:08Z")

</div>

Hi, I’ve got a weird setup due to legacy code. I have tests in sub-project A that exercise classes in sub-project B. Right now my code coverage in Sonar is not showing that the classes in B are coverage. Is there a w…

---

## [Local jacoco code coverage % and sonarqube coverage % is different, why?](https://community.sonarsource.com/t/local-jacoco-code-coverage-and-sonarqube-coverage-is-different-why/111753)

<div class="topic-metadata">

**Author:** [@Iswaria](https://community.sonarsource.com/u/Iswaria)\
**Replies:** 18\
**Last updated:** [April 1, 2024, 10:51am UTC](https://community.sonarsource.com/t/local-jacoco-code-coverage-and-sonarqube-coverage-is-different-why/111753 "2024-04-01T10:51:05Z")

</div>

local jacoco code coverage % and sonarqube coverage % is different, why? in local, jacoco report shows 72% instruction coverage and 52% for branch coverage. but in sonarqube, totatl coverage is 45%, why that discrepenc…

---

## [Local jacoco report and Sonar UI coverage report is different](https://community.sonarsource.com/t/local-jacoco-report-and-sonar-ui-coverage-report-is-different/108939)

<div class="topic-metadata">

**Author:** [@Iswaria\_sasi\_Ishu](https://community.sonarsource.com/u/Iswaria_sasi_Ishu)\
**Replies:** 1\
**Last updated:** [February 12, 2024, 10:25am UTC](https://community.sonarsource.com/t/local-jacoco-report-and-sonar-ui-coverage-report-is-different/108939 "2024-02-12T10:25:20Z")

</div>

Jacoco report which generated locally by developer and sonarqube UI coverage which imports the report and display the coverage isn’t the same. What could be the reason for such behaviour.

---

## [Sonar and jacoco full report configuration for gradle](https://community.sonarsource.com/t/sonar-and-jacoco-full-report-configuration-for-gradle/54920)

<div class="topic-metadata">

**Author:** [@shin938](https://community.sonarsource.com/u/shin938)\
**Replies:** 2\
**Last updated:** [February 12, 2024, 3:46am UTC](https://community.sonarsource.com/t/sonar-and-jacoco-full-report-configuration-for-gradle/54920 "2024-02-12T03:46:46Z")

</div>

We have a multi module gradle java project on bitbucket cloud that we integrate sonarcloud plus jacoco full report. we have a jacoco full report task in the root project as in this example: https://github.com/SonarSour…

---

## [Jacoco.xml is generating,but sonar coverage is 0%](https://community.sonarsource.com/t/jacoco-xml-is-generating-but-sonar-coverage-is-0/108602)

<div class="topic-metadata">

**Author:** [@Iswaria\_sasi\_Ishu](https://community.sonarsource.com/u/Iswaria_sasi_Ishu)\
**Replies:** 2\
**Last updated:** [February 7, 2024, 6:59am UTC](https://community.sonarsource.com/t/jacoco-xml-is-generating-but-sonar-coverage-is-0/108602 "2024-02-07T06:59:35Z")

</div>

I am a beginner, I was working on a CI pipeline, there I am getting sonar coverage issue. Source code path is not picking by sonar and not getting coverage. But it’s picking the test path files correctly and reporting in…

---

## [java:S1118 causes problems with code coverage in quality gate](https://community.sonarsource.com/t/java-s1118-causes-problems-with-code-coverage-in-quality-gate/108043)

<div class="topic-metadata">

**Author:** [@anon67236913](https://community.sonarsource.com/u/anon67236913)\
**Replies:** 4\
**Last updated:** [February 1, 2024, 5:43pm UTC](https://community.sonarsource.com/t/java-s1118-causes-problems-with-code-coverage-in-quality-gate/108043 "2024-02-01T17:43:44Z")

</div>

Hi, our developers reported this problem: a utility class did not have a private constructor, so the rule java:S1118 “Utility classes should not have public constructors” brought up an issue. But after fixing this is…

---

## [Real need help about coverage mismatch according jacoco and sonar](https://community.sonarsource.com/t/real-need-help-about-coverage-mismatch-according-jacoco-and-sonar/107658)

<div class="topic-metadata">

**Author:** [@aximo](https://community.sonarsource.com/u/aximo)\
**Replies:** 1\
**Last updated:** [January 22, 2024, 12:45pm UTC](https://community.sonarsource.com/t/real-need-help-about-coverage-mismatch-according-jacoco-and-sonar/107658 "2024-01-22T12:45:17Z")

</div>

sonar: Community Edition Version 10.2.1 (build 78527) jdk 11 maven sonar plugin sonar-maven-plugin:3.9.1.2184:sonar jacoco plugin jacoco-maven-plugin:0.8.10 we have integration maven/jacoco/sonar in our multi module m…

---

## [Jacoco Coverage Report for multi module gradle project not visible for Sonar](https://community.sonarsource.com/t/jacoco-coverage-report-for-multi-module-gradle-project-not-visible-for-sonar/106528)

<div class="topic-metadata">

**Author:** [@saltexx](https://community.sonarsource.com/u/saltexx)\
**Replies:** 1\
**Last updated:** [December 28, 2023, 12:43pm UTC](https://community.sonarsource.com/t/jacoco-coverage-report-for-multi-module-gradle-project-not-visible-for-sonar/106528 "2023-12-28T12:43:04Z")

</div>

Hi everyone, I have the issue with coverage in sonarcloud for multi module gardle project. For aggregating report I use ‘jacoco-report-aggregation’ plugin. After build I’ve received jacoco coverage report that coverag…

---

## [BUILD FAILED because Execution fails for task ':sonarqube'](https://community.sonarsource.com/t/build-failed-because-execution-fails-for-task-sonarqube/105237)

<div class="topic-metadata">

**Author:** [@Yanislav\_Yanakiev](https://community.sonarsource.com/u/Yanislav_Yanakiev)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 2:58pm UTC](https://community.sonarsource.com/t/build-failed-because-execution-fails-for-task-sonarqube/105237 "2023-12-01T14:58:30Z")

</div>

Hello, I am new to SonarQube and I am trying to set up sonarqube and jacoco for test coverage in gitlab. Whenever I run Jacoco using “gradle build jacocoTestReport” in the terminal it runs just fine and I can look at my…

---

## [Code Coverage showing null for SAP Hyrbis Project](https://community.sonarsource.com/t/code-coverage-showing-null-for-sap-hyrbis-project/104405)

<div class="topic-metadata">

**Author:** [@synthetic.monitor](https://community.sonarsource.com/u/synthetic.monitor)\
**Replies:** 6\
**Last updated:** [December 1, 2023, 5:11am UTC](https://community.sonarsource.com/t/code-coverage-showing-null-for-sap-hyrbis-project/104405 "2023-12-01T05:11:21Z")

</div>

We are using the SonarQube to analyse our SAP Hybris code. We have successfully generated Jacoco XMl reports but while importing it in sonarqube it gives 0% code coverage. I have mentioned all the versions details which…

---

## [Unable to see the coverage for Gradle 6.6 project](https://community.sonarsource.com/t/unable-to-see-the-coverage-for-gradle-6-6-project/103821)

<div class="topic-metadata">

**Author:** [@Bhagavat\_Bhise](https://community.sonarsource.com/u/Bhagavat_Bhise)\
**Replies:** 4\
**Last updated:** [November 16, 2023, 5:32am UTC](https://community.sonarsource.com/t/unable-to-see-the-coverage-for-gradle-6-6-project/103821 "2023-11-16T05:32:13Z")

</div>

Hi Team, I am facing an issue with code coverage, not able to see the code coverage over Sonarqube, we are able to generate the coverage.xml locally as well in GitLab. But the sonarqube job is not able to show that thin…

---

## [Code Coverage showing](https://community.sonarsource.com/t/code-coverage-showing/96461)

<div class="topic-metadata">

**Author:** [@pvasilev94](https://community.sonarsource.com/u/pvasilev94)\
**Replies:** 14\
**Last updated:** [August 31, 2023, 11:46am UTC](https://community.sonarsource.com/t/code-coverage-showing/96461 "2023-08-31T11:46:20Z")

</div>

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) Sonarqube - 10.0 (build 68432) Developer Edition Scanner - 4.8.0.2856 Plugin - None how is SonarQube deployed: zip, Docker, Helm D…

---

## [Sonar Exclusion blocks within files and Jacoco Coverage Report issue](https://community.sonarsource.com/t/sonar-exclusion-blocks-within-files-and-jacoco-coverage-report-issue/96735)

<div class="topic-metadata">

**Author:** [@vicsonvictor](https://community.sonarsource.com/u/vicsonvictor)\
**Replies:** 1\
**Last updated:** [August 3, 2023, 1:54pm UTC](https://community.sonarsource.com/t/sonar-exclusion-blocks-within-files-and-jacoco-coverage-report-issue/96735 "2023-08-03T13:54:30Z")

</div>

Must-share information (formatted with Markdown): SonarQube Scanner - 4.7.0.2747 Run Sonar scanner on Bitrise(CI) workflows Skip/Exclude blocks of code in classes. Used \\s\*//\\s\*START-NOSCAN and \\s\*//\\s\*END-NOSCAN as ex…

---

## [Separate coverage reports for Unit and Integration tests](https://community.sonarsource.com/t/separate-coverage-reports-for-unit-and-integration-tests/81068)

<div class="topic-metadata">

**Author:** [@smurphy](https://community.sonarsource.com/u/smurphy)\
**Replies:** 8\
**Last updated:** [July 31, 2023, 7:28am UTC](https://community.sonarsource.com/t/separate-coverage-reports-for-unit-and-integration-tests/81068 "2023-07-31T07:28:48Z")

</div>

Must-share information (formatted with Markdown): which versions are you using: Enterprise Edition Version 8.9.4 (build 50575) what are you trying to achieve: Separate reports for Unit & Integration tests what have you…

---

## [Sonar Cloud does not display coverage with Jacoco](https://community.sonarsource.com/t/sonar-cloud-does-not-display-coverage-with-jacoco/95791)

<div class="topic-metadata">

**Author:** [@ghmiyoshi](https://community.sonarsource.com/u/ghmiyoshi)\
**Replies:** 4\
**Last updated:** [July 20, 2023, 12:07am UTC](https://community.sonarsource.com/t/sonar-cloud-does-not-display-coverage-with-jacoco/95791 "2023-07-20T00:07:16Z")

</div>

Hey guys, I’m not able to import from JaCoCo coverage report in XML format for SonarCloud with GitHub Actions. I follow this tutorial Java Test Coverage | SonarCloud Docs but I didn’t succeed. PR Link: 31# Result S…

[Next page](https://community.sonarsource.com/tag/jacoco/80.md?match_all_tags=true&page=1&tags%5B%5D=jacoco)
