I’ve created a Java Project and deployed on jenkins, and used jacoco and sonarqube to check on the code coverage. However, I find out the code coverage calculation from jacoco and the one displayed in sonarqube is different. Where the sonarqube result is incorrect.
I’ve searched through Google to find the set up, but it is still generate the same result.
All related screen capture, including jenkins post step config:
From the above screen capture, I found out that the jacoco html report is the correct one as it showed the coverage of all files. But the sonarqube result only show the coverage on the test case file.
Jenkins: ver. 2.121.3
sonarqube: Version 7.1 (build 11001)
Could anyone can give some advice on solving this problem?