# On importing coverage.out file into sonarqube, still getting 0% in overall coverage

**URL:** <https://community.sonarsource.com/t/on-importing-coverage-out-file-into-sonarqube-still-getting-0-in-overall-coverage/52326>\
**Category:** SonarQube Server / Community Build\
**Tags:** pipeline, go, jenkins, sonarqube, coverage\
**Created:** [October 29, 2021, 6:40am UTC](https://community.sonarsource.com/t/on-importing-coverage-out-file-into-sonarqube-still-getting-0-in-overall-coverage/52326 "2021-10-29T06:40:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Quentin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/quentin/32/74716_2.png) [@Quentin](https://community.sonarsource.com/u/Quentin)\
**Post date:** [January 14, 2022, 2:09pm UTC](https://community.sonarsource.com/t/on-importing-coverage-out-file-into-sonarqube-still-getting-0-in-overall-coverage/52326/5 "2022-01-14T14:09:55Z")

</div>

Hello @Vignesh_Murugesan

Did you manage to solve your problem? If yes, it would be great if you could share with us what was the problem.

If not, I invite you to have a look at this example of how someone configured his project.

> [@SonarGo code coverage 0%](https://community.sonarsource.com/t/sonargo-code-coverage-0/19473/9):
>
> For anyone else who may find it helpful, now that my build process is working, here is a simplified run down of my settings and build process: My first step is to run my tests and generate my a coverage report and test report: go test "./..." -coverprofile="coverage.out" -covermode=count -json \> report.json; I also added an optional step to generate a go linter report using this 3rd party cli golangci-lint run ./... --verbose --no-config --out-format checkstyle \> golangci-lint.out My sonar.…

And eventually at this related post:

> [@Sonar scanner fails to load Go test results](https://community.sonarsource.com/t/sonar-scanner-fails-to-load-go-test-results/19671/4):
>
> So I figured it out. The secret was in Cameron’s properties file, but it’s not clear what it is. When I ran with just this (omitting projectKey and projectName): sonar.go.tests.reportPaths=report.json sonar.go.coverage.reportPaths=coverage.out I got code coverage, but not test results. So my assumption was that the default values for sonar.sources and sonar.tests was correct and the issue was in how tests were processed. This assumption turned out to be wrong (as they generally are). I clone…

Hope it will lead you in your researches.  
If you are still stuck, feel free to come back to us with updated information.

Best,  
Quentin

---

_[View the full topic](https://community.sonarsource.com/t/on-importing-coverage-out-file-into-sonarqube-still-getting-0-in-overall-coverage/52326)._
