I am generating code coverage report with Jacoco and Sonarqube in my Java mvn project. sonarqube is running local docker using latest image.
I’m able to see most of metrics like bugs, vulnerabilities, code smell etc.
However for code coverage, it is showing 0 for both new code and overall. There are many unit tests on the project so the overall shouldn’t be 0. Is there any settings I need to enable?
For new code, is it just compare new metrics with the existing metrics? I’d like to setup tracking of new code as compare to another branch in the git. For example I have a branch master in the git, I can branch out feature/abc, I’d like to track the new code as the difference between branch feature/abc and branch master, is this possible? how to set it up?