Hello, I have a service that has zero coverage, but I don’t know what it could be
All other Sonar metrics are ok only the coverage has a problem.
Hi,
Welcome to the community!
Are you generating a coverage report and feeding that into analysis?
If so, what do your analysis logs say about its parsing?
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.
This guide will help you find them.
Ann
Hello, I will read the documentation you sent me.
Based on your experience, could you tell me what could be causing the problem?
checklist for example
Hi,
I can’t say much without your analysis logs. Wanna paste the text - starting at least from the analysis command - here?
Ann
I checked the logs and found this information
[INFO] ‘sonar.coverage.jacoco.xmlReportPaths’ is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
[INFO] No report imported, no coverage information will be imported by JaCoCo XML Report Importer