BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Code coverage analysis
Lesson218 words

Code coverage analysis

Implement code coverage analysis

Publishing coverage

yaml
- task: PublishCodeCoverageResults@2 inputs: summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.cobertura.xml'

The coverage formats are Cobertura and JaCoCo — distinct from the test result formats (JUnit, NUnit, VSTest, xUnit, CTest). Mixing the two families up is a reliable exam trap.

What coverage does and does not tell you

Coverage measures which lines executed while tests ran. It does not measure whether anything was asserted. A test suite that calls every method and asserts nothing can report very high coverage and catch no defects.

So treat coverage as a signal about untested regions, not as a quality score:

UseSound?
Find files with no tests at allYes — highly informative
Detect coverage falling on changed codeYes — the most actionable gate
Compare team performance by percentageNo — invites gaming
Mandate a single global percentageWeak — legacy code drags it; the number gets lowered

Gating on it

The useful gate is on coverage of the code this change touched, not on the repository-wide figure. It asks a question the author can act on, cannot be satisfied by writing tests elsewhere, and does not penalise a codebase for its history.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/test/review-code-coverage-results
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.