# Cannot see jacoco coverage in sonarcloude

**URL:** <https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512>\
**Category:** SonarQube Cloud\
**Tags:** jacoco, coverage, scanner, sonarqube-cloud\
**Created:** [August 9, 2022, 2:57pm UTC](https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512 "2022-08-09T14:57:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BathiyaL](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bathiyal/32/35960_2.png) [@BathiyaL](https://community.sonarsource.com/u/BathiyaL)\
**Post date:** [August 9, 2022, 2:57pm UTC](https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512/1 "2022-08-09T14:57:30Z")

</div>

Hi  
I have following GitHub action setup and integrated with Sonarcloud, I can see static code analysis information but Jacoco code coverage is not updating.

GitHub action : [Add RulesRelatesToMethods · BathiyaL/code-quality-analysis@7640628 · GitHub](https://github.com/BathiyaL/code-quality-analysis/actions/runs/2826170161)

```auto
name: Build and analyze
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}        
        run: mvn clean test -B -X sonar:sonar -Pcoverage org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=BathiyaL_code-quality-analysis

```

appreciate your help on this

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [August 9, 2022, 3:48pm UTC](https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512/2 "2022-08-09T15:48:03Z")

</div>

It sure looks like coverage is importing:

```auto
2022-08-09T14:50:47.1145333Z [INFO] 14:50:47.114 Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
2022-08-09T14:50:47.1149134Z [DEBUG] 14:50:47.114 Reading report '/home/runner/work/code-quality-analysis/code-quality-analysis/target/site/jacoco/jacoco.xml'
2022-08-09T14:50:47.1342832Z [INFO] 14:50:47.134 Sensor JaCoCo XML Report Importer [jacoco] (done) | time=23ms
2022-08-09T14:50:47.1348591Z [INFO] 14:50:47.134 Sensor CSS Rules [javascript]

```

 ![Screenshot 2022-08-09 at 17.46.47](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/9/e/9e654ba571eed4247a5c808016bc91bb4e961458.png)

It just appears that no tests have been written that cover the code introduced in your pull request.

---

<div class="post-metadata">

**Author:** ![BathiyaL](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/bathiyal/32/35960_2.png) [@BathiyaL](https://community.sonarsource.com/u/BathiyaL)\
**Post date:** [August 10, 2022, 2:46am UTC](https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512/3 "2022-08-10T02:46:38Z")

</div>

Hey Colin, Thank you very much for the information.  
you are correct, it works fine with the new code changes. The coverage I was expecting was not in the new code(PR) and I didn’t realize this.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [August 17, 2022, 2:46am UTC](https://community.sonarsource.com/t/cannot-see-jacoco-coverage-in-sonarcloude/69512/4 "2022-08-17T02:46:52Z")

</div>

Closed on August 17, 2022, 2:46am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
