Azure DevOps is overwriting the code coverage result tab

Ky Nguyen 40 Reputation points
2024-10-24T06:06:43.6333333+00:00

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 pictureImage

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

Image

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
Community Center | Not monitored
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.