# SonarQube Coverage Report is Spiking and Falling

**URL:** <https://community.sonarsource.com/t/sonarqube-coverage-report-is-spiking-and-falling/56375>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube, coverage, java\
**Created:** [January 13, 2022, 9:41pm UTC](https://community.sonarsource.com/t/sonarqube-coverage-report-is-spiking-and-falling/56375 "2022-01-13T21:41:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byteMe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/byteme/32/29215_2.png) [@byteMe](https://community.sonarsource.com/u/byteMe)\
**Post date:** [January 13, 2022, 9:41pm UTC](https://community.sonarsource.com/t/sonarqube-coverage-report-is-spiking-and-falling/56375/1 "2022-01-13T21:41:29Z")

</div>

Version: 7.9.5  
My coverage reports are spiking high and low. For example each time sonar builds coverage report the % of code covered will be in the 80% then when i build again it unexpectedly drops to 30%. If i build again a few more times it jumps back to 80%. And so on so forth. This happens even if there is no code change, I’ve exhausted everything that i can try. Hoping someone here can help me figure out why it is spiking.

---

<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:** [January 14, 2022, 12:51pm UTC](https://community.sonarsource.com/t/sonarqube-coverage-report-is-spiking-and-falling/56375/2 "2022-01-14T12:51:32Z")

</div>

Hey there.

First of all – you should know that SonarQube _v7.9 LTS_ is an EOL version of SonarQube. You should upgrade to at least _v8.9 LTS_ at the earliest.

I would suggest checking your build/scanner logs and making sure that between runs (one high, one low):

- A full rebuild of your code is taking place
- The number of successful tests are the same (example for Maven)

```auto
-------------------------------------------------------

T E S T S

-------------------------------------------------------

Running com.acme.basic.HelloWorldTest

Hello World!

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

```

- The number of indexed files are the same (scanner logs)

`INFO: 15 files indexed`

If it doesn’t become obvious where the issue is, try upgrading to _v8.9 LTS_ and come back so we can provide more help.

Colin

---

<div class="post-metadata">

**Author:** ![byteMe](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/byteme/32/29215_2.png) [@byteMe](https://community.sonarsource.com/u/byteMe)\
**Post date:** [January 14, 2022, 2:46pm UTC](https://community.sonarsource.com/t/sonarqube-coverage-report-is-spiking-and-falling/56375/3 "2022-01-14T14:46:56Z")

</div>

Thank you,  
I’ll check those three and hopefully that reveals it self.
