- Sonarqube LTS 8.9 enterprise version
- Custom sonar java rules
*I have created the custom sonar java rules based on the following guidelines sonar-java/CUSTOM_RULES_101.md at master · SonarSource/sonar-java · GitHub
And created test cases for my custom rules as given in the link.
The custom rules i am running in CI/CD and when i run jacoco on the custom rules with the test cases as per the above guidelines, jacoco is not recognizing the test cases and shows zero coverage.
Test cases are written as given here sonar-java/AvoidAnnotationRuleTest.java at master · SonarSource/sonar-java · GitHub usisng CheckVerifier.newVerifier()
But jacoco does not instruement these test cases and provides the coverage as zero.
How to make jacoco recognize these tests as 100% coverage.