I have created a new microservice in my spring boot project which uses jacoco as a sonar plugin. There are some test cases in a package that are not producing any coverage upon running in my local. It was showing No Coverage. Click Edit to fix configuration settings. But some test cases in a different package in the same project are working fine.
We are using bamboo to send the reports to sonarqube where the test case coverage for all packages are coming up correctly.
- sonar-maven-plugin in bamboo:3.9.1.2184:sonar
- SonarQube version: 9.9.0.65466
- Java version: 17
I have checked the configuration settings for both kinds of packages and there isn’t any difference. My question is why its showing ‘No coverage’ in local but showing correct coverage in SonarQube?