Skill 3.2.4
Implement code coverage analysis
Key Concepts
Test tools produce coverage reports, such as Cobertura XML, and PublishCodeCoverageResults@2 publishes them. Azure Pipelines can also show diff coverage in a pull request, with thresholds set in azurepipelines-coverage.yml.
Coverage is a helpful indicator and a poor target. A test can run code without checking its result, so a gate on new code is more useful than a high overall percentage.