kiran itagi
kiran itagi

Reputation: 41

How to track my code coverage report in azure devops on dashboard or something similar?

I have a pipeline which generates code coverage report as an artifact, It contains a set of 32 html files and a summary. Now I want to track these on azure devops or something similar how can I do it

Upvotes: -1

Views: 154

Answers (1)

wade zhou - MSFT
wade zhou - MSFT

Reputation: 8092

How to track my code coverage report in azure devops on dashboard or something similar?

code coverage detail is tracked on pipeline run result page not dashboard. You can check the official doc Review code coverage results for the details.

There is only 3rd-party extension(here and here) to track coverage result on dashboard, but it only shows little info which is not recommended.

hmtl files are human readable, it's not needed now for coverage tracking.

To track the code coverage on pipeline result, it could be different due to the task used:

  1. You can use task Publish Code Coverage Results which requires the coverage.xml. sample link.
- task: PublishCodeCoverageResults@2
  displayName: Publish code coverage results
  inputs:
    summaryFileLocation: "coverage.xml" 
  1. Built-in tasks such as Visual Studio Test, .NET Core, Ant, Maven, Gulp, Grunt, and Gradle provide the option to publish code coverage data to the pipeline.

For example: enter image description here

Please check the link below for the details.

enter image description here

Upvotes: 0

Related Questions