Open asos-eugeneniemand opened 3 years ago
I had a similar problem, and I think it was solved by making sure that the sourcefiles and xml are in the same folder. I did this by adding a line in my powshell to save the SourceFiles , which effectivley copies these files to the specified location
$result.SaveSourceFiles($outputPath)
So I think this works becuase the source files in the code-coverage-report.xml are referenced in relation to where the code-coverage-report.xml resides. For example in your code-coverage-report.xml you should see the filename dos not contain the full path Unless there is a way to populate the full filepath to the soriginal source files
Describe the bug When using the Cobertura format and using the Publish Coverage Results task in ADO I get the following results in the logs
When looking at the published result in ADO it has the metrics but not the file or code, see screenshot below
I've noticed there is a field on the taks called
Path to Source files
with the following tooltipWe are not using JaCoCo so I'm not sure if the Cobertura format generated by SQLCover is incorrect or if I need to supply something in the
Path to Source files
field to make this work correctlyAny ideas are welcome, thanks.
@GoEddie hope you are well mate :)