I am generating cobertura.cml through bash script pipeline task in Azure Devops
And trying publish code coverage using cobertura and a artifact is creating showing a certain percentage
I when I tried to integrate to sonarqube it’s says coverage report does not contain any record in the file cc.xml
I have added the following in sonar.extra properties
Sonar.sources =.
Sonarqube.php.coverage.reportPaths=cobertura.xml
sonar.language=php
Sonar.verbose=true
if you run a cat cobertura.xml, do you see the expected coverage data? SonarQube just reads the report it’s given. If the report is flawed… you aren’t going to get any coverage data.
Content seems okay …but still it shows report s does not have any valid record …while importing coverage report
And a artifact is creating for cobertura in azure DevOps a index.html is created which has a html of percentage with covered and uncovered lines in the code…
Followed by cobertura.xml…i can able to see the content…