Hi All,
We are facing one issue in our project.
The new code changes written in test case file is not covered by sonar, but the new code changes are committed in git-hub server.
We are unable to figure out the reason for not covered by sonar though the new testcase code changes added to the file.
In local machine, eclipse jacoco plugin the new code changes are showing it as covered but in the build server the new code changes are not covered by sonar.
Here is the project server setup details.
SonarQube version: 7.9.1
Jenkins cloudbees
In windows 10 Local machine, eclipse maven project test cases are working but in build server new lines of code is not covered by sonarqube.
please provide us the solution to debug this issue.
Thanks for the help in advance.
Hi i am facing the exact same issue, the coverage data is uploaded and displayed except of 2 files.
I assume the cause for me and " RAGHUSHANKAR A C" is the same.
If I’m reading this right, your log shows your coverage step running after your SonarQube analysis. For this to work, it needs to run before analysis so you can feed the resulting log into analysis.
Also sonar reports that it does pick the file up: (link to log-line)
Sensor VB.NET Properties [vbnet] (done) | time=0ms
Sensor JaCoCo XML Report Importer [jacoco]
Importing 1 report(s). Turn your logs in debug mode in order to see the exhaustive list.
Sensor JaCoCo XML Report Importer [jacoco] (done) | time=8ms
Sensor CSS Rules [javascript]
Also maybe my statements were not very concise, the report is indeed picked up correctly The Problem is that one file (sonar cloud link from last post : Sonarcloud - reactj) is displayed with 0% while the jacoco report which is uploaded states that it is 95% covered (link to the correct coverage report (from the same build)
Proof of the report being (mostly) correct:
Also i do understand if you are now allowed to download a “random” zip from a forum user. Here is an image of said file:
Hi again, i just wanted to ask if there is anything i can do to help you with progressing, like giving you missing information or producing new logs etc