Hi,
I use SonarQube 7.5 (Community Edition) and Sonar-Scanner (4.2) and SonarLint for local analysis.
This helps me to identify new issues brfore pushing my code to SCM. Similarly, I am trying to get JUnit coverage on my local code (new_code) which is not pushed to SCM. The process I followed is
- Run build, jacoco, sonar-scanner with version number 1 and baselined it.
- Make my changes locally and ran sonar-scanner with version number 2.
But SonarQube doesn’t show coverage under new-code section. I can see the coverage changed (reduced) if go to the specific file, but sonarqube is unable to detect the coverage on new code.
Is there a way we can get coverage on new code using SonarQube platform, before pushing code to SCM systems? Any help would be greatly appreciated.