Sonar coverage 0.0%

scanner
coverage

(Siva Narayanan) #1

I am trying to get code coverage details for reactjs project but I am always getting 0.0% as coverage.

Did I missed any configuration?


(Adam Gabryś) #2

Please provide your SonarQube and Scanner configuration (properties, installed plugin, etc.).


(752813687) #3

,'ve tried many ways but nothing can be done. Is that enough information? Thank you very much


(Adam Gabryś) #4

Which tool do you use to generate code coverage report?


(752813687) #5

I implemented it in three ways, one is sonar-scanner, one is to directly run the script run-sonar_v2.sh, and the last is to use Fastlane’s fastlane custom_lane implementation.The results are the same, with no coverage, so I guess some configuration error is possible.Thanks


(G Ann Campbell) #6

Hi,

Analysis doesn’t generate the coverage report. You have to do that first analysis and feed the report into analysis.

 
Ann


(Andrei Epure) #7

We have a useful SonarQube and the code coverage FAQ section on this forum that explains how SonarQube deals with code coverage

Also, you can check our SonarSource Plugins documentation for the specific plugin you are using and see how code coverage gets imported.

For example Swift Coverage Results Import , JavaScript Coverage Results Import etc. Each plugin has such a section


(Sivanarayanan Perumal) #8

Thanks all for your responses.
I missed the analysis file, that’s why I did not get any progress on sonar report. now its working fine.
Once again thanks all for your help!