I have a Test.java class annotated with @RunWith(SpringJUnit4ClassRunner.class)
(from spring-test-3.2.18-RELEASE.jar
). I'm finding that it does not show up in Jenkins' Jacoco Coverage Report (or on SonarQube which pulls from Jacoco reports).
Screenshots
Sorry I've had to obfuscate company-secret info, but it's the same class under test I'm showing the coverage data for.
Basic Coverage Report in Jenkins
Jacoco Coverage Report in Jenkins
Further info
- I'm not sure if this is confirmation or not: http://sonarqube-archive.15.x6.nabble.com/Sonar-4-0-Jacoco-Code-coverage-Vs-Unit-tests-coverage-SPRING-td5022529.html This