Azure DevOps is overwriting the code coverage result tab
Hi Microsoft support,
There's seem to be an issue with the way Azure DevOps render the code coverage report from my .NET application, When I first ran the Azure pipeline to generate the code coverage report, Azure DevOps rendered an HTML report in the Code Coverage tab like in this picture
At first I'm guessing the pipeline will continue using this HTML format to view the code coverage, but I was wrong Azure DevOps completely rewrite the report with their own format making it look like this for the next subsequent run
I'm unaware of this behavior and it's really annoying, in the document there is no mentioning about using HTML format, when my test also generate HTML format. Can you guys help me fix this issue? Here is my pipeline template to publish the report
- task: PublishCodeCoverageResults@2
displayName: "Publish code coverage"
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "${{ parameters.srcDirectory }}/results/*.xml"
continueOnError: true