File photo: GitHub office letterbox in Amsterdam, November 9, 2023; not a screenshot of the new feature. Photo: Rrustema / Wikimedia Commons, CC0. NDR resizing and branding.
GitHub has put a repository-level Code coverage view into public preview, giving development teams a way to track how much of their default-branch code is exercised by tests. The December 4 release is available for GitHub Team and Enterprise Cloud, including cloud accounts with data residency; Enterprise Server is excluded.
The official changelog says the view combines current coverage, historical trends and an optional coverage target in the repository’s Code Quality area.
Reports must be uploaded first
Teams need to enable Code Quality and upload Cobertura XML coverage reports from the default branch. GitHub combines multiple reports without counting the same covered line twice. The history graph offers 14-, 30- and 90-day views and updates once a day.
GitHub’s usage documentation identifies write access as a requirement for using the feature and warns that the public preview may change.
A target is not a merge gate
Repository administrators and maintainers can set a target for overall coverage. GitHub says that target is a visual reference and does not itself prevent a pull request from being merged. Teams that need an enforced policy should check their existing repository rules separately.
Coverage measures executed lines in the submitted reports; it does not by itself prove that every important behaviour has been tested or that an application is secure. Teams assessing the preview should consider that distinction when reading the percentage.
Read more software developments in our Technical coverage.

