Viewing code coverage on pull requests

Review the coverage summary posted on your pull requests to identify files with low or declining code coverage.

Prerequisites

Note

The coverage summary comment reports line coverage. See Code coverage reference.

Reading the coverage summary comment

After code coverage is configured for your repository, the github-code-quality[bot] posts a coverage summary comment on each pull request. The comment includes:

Use the coverage summary to identify files with low or declining coverage and prioritize review attention on untested changes.

If you need to extend coverage of your test suite, Copilot can help you write and update your tests. See Testing code.

Next steps