# Code coverage is showing incorrectly in Sonarqube project UI

**URL:** <https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850>\
**Category:** SonarQube Server / Community Build\
**Tags:** coverage\
**Created:** [March 23, 2023, 8:06am UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850 "2023-03-23T08:06:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/karthik_medam/32/43406_2.png) [@Karthik\_Medam](https://community.sonarsource.com/u/Karthik_Medam)\
**Post date:** [March 23, 2023, 8:06am UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/1 "2023-03-23T08:06:14Z")

</div>

Make sure to tell us:

- What version are you upgrading from?  
We have upgraded from 8.9 to 9.9
- System information (Operating system, Java version, Database provider/version)  
Linux
- What’s the issue you’re facing?  
Code coverage for our application is showing as 100% when scanned locally and it is showing that 4 lines were not covered in the sonarqube. Kindly let us know the reason

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 28, 2023, 4:05pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/3 "2023-03-28T16:05:11Z")

</div>

Hi,

Welcome to the community!

You haven’t given a lot to work with.

Perhaps [this blog post](https://blog.sonarsource.com/executable_lines) will help.

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/karthik_medam/32/43406_2.png) [@Karthik\_Medam](https://community.sonarsource.com/u/Karthik_Medam)\
**Post date:** [March 28, 2023, 5:54pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/4 "2023-03-28T17:54:35Z")

</div>

![Screenshot 2023-03-28 at 11.23.17 PM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/5/f/5f911750fdf5b695527a58e8c090e5f0cc58ce7d.png)  
This is local sonarqube analysis

---

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/karthik_medam/32/43406_2.png) [@Karthik\_Medam](https://community.sonarsource.com/u/Karthik_Medam)\
**Post date:** [March 28, 2023, 5:56pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/5 "2023-03-28T17:56:50Z")

</div>

same is showing as failing in sonarqube, Our customers are being impacted with this. Kindly help at the earliest. This is urgent request.

 ![Screenshot 2023-03-28 at 11.24.54 PM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/4/2/42159f1c4cd557637176b124ddc643f36ce3e158.jpeg)

---

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/karthik_medam/32/43406_2.png) [@Karthik\_Medam](https://community.sonarsource.com/u/Karthik_Medam)\
**Post date:** [March 28, 2023, 5:57pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/6 "2023-03-28T17:57:31Z")

</div>

ganncamp , kindly help at the earliest

---

<div class="post-metadata">

**Author:** ![Karthik\_Medam](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/karthik_medam/32/43406_2.png) [@Karthik\_Medam](https://community.sonarsource.com/u/Karthik_Medam)\
**Post date:** [March 28, 2023, 6:03pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/7 "2023-03-28T18:03:21Z")

</div>

The above doc that u have shared is not related to us

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [March 28, 2023, 6:05pm UTC](https://community.sonarsource.com/t/code-coverage-is-showing-incorrectly-in-sonarqube-project-ui/87850/8 "2023-03-28T18:05:28Z")

</div>

Hi,

Per [the FAQ](https://community.sonarsource.com/faq#patient):

> ## [I created a topic, when can I expect a response?](https://community.sonarsource.com/faq#sla)
> 
> This is an open community with people volunteering their free time to provide assistance. We’re eager to contribute to the community, but you are not guaranteed a fast response.
> 
> ### [Be patient](https://community.sonarsource.com/faq#patient)
> 
> - Wait a few days before bumping a topic that hasn’t received a response.

Regarding your question, the screenshots are helpful. They show that the file has some lines covered. That means the file is included in a coverage report. And when that’s the case, we go 100% by what the coverage report says.

So you need to figure out why your two different(?) sets of tooling provide different numbers.

&nbsp;  
HTH,  
Ann
