A community member has associated this post with a similar question:
Azure DevOps is overwriting the code coverage result tab

Only moderators can edit this content.

Azure DevOps is overwriting the code coverage result tab

Ky Nguyen 40 Reputation points
2024-10-24T06:09:31.7966667+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 picture

Image

A 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