Navy laptop with a blank screen beside two contrasting report sheets and an inspection lens Navy laptop with a blank screen beside two contrasting report sheets and an inspection lens

GitHub Coverage Missing? Check the Report Before Rerunning Tests

Passed tests do not prove a usable coverage upload. Compare three unrun fixtures and trace the report, event, upload log and displayed denominator.

A GitHub Code Quality Cobertura upload can fail even when your tests pass. Start with the report and the upload log before rerunning the entire workflow. A successful test command, a usable coverage file and a visible pull-request result are separate pieces of evidence.

This guide supplies three unrun troubleshooting fixtures, a fictional line-count example and four CSV tools. In our worksheet, four covered lines out of six eligible changed lines equal 66.7%. That arithmetic is not a measured GitHub result or a prediction of the percentage your pull request will display.

GitHub Code Quality Cobertura upload: what changed?

GitHub’s 23 November announcement says this uploader now rejects unsupported report formats with an explicit error. It can also process valid Cobertura reports more leniently, skipping individual records without usable line numbers or hit counts. The change concerns this Code Quality uploader, not every coverage service or every XML-based report.

The same announcement scopes availability to GitHub Team and Enterprise Cloud, including cloud data-residency arrangements, and excludes Enterprise Server. First confirm that Code Quality is enabled for the repository. Do not diagnose a missing feature as a broken test suite before checking the product and repository setup.

Check the file content before the extension

A file named coverage.xml can still contain the wrong format. For example, renaming an LCOV artifact does not convert its content to Cobertura. Inspect the retained artifact from the run you are investigating. Record the producing command, file path and format together so another maintainer can trace the same evidence.

GitHub’s setup documentation requires a real Cobertura report and shows how to generate one for different tools. It also explains the default-branch baseline and pull-request comparison. Use the instructions for your own framework and keep the relevant workflow permissions narrowly scoped; this article does not change any repository settings.

Before changing a workflow, save its current version and the failing run’s log. Then change the report-producing configuration in a disposable branch. A format conversion should preserve the source-file and line information needed for mapping. Compare the artifact itself rather than treating a renamed path as proof that conversion worked.

A skipped branch upload is a different outcome

The 1 October branch-upload change describes a separate case: a push to a non-default branch with no open pull request skips the upload rather than failing it. The notice and step summary explain that situation. Keep it distinct from an unsupported-format error.

If a workflow runs only on push, opening a pull request does not itself cause a new upload. The documented choices include a later push or an appropriate pull-request trigger. Check the actual event and PR association before changing the tests. Do not infer that every skipped step has the same cause.

Compare three unrun fixtures

FixtureWhat variesExpected diagnostic route
Renamed LCOVLCOV content; .xml filenameCheck actual format; documented validation failure
Branch without PRValid report; non-default push; no PRCheck documented upload skip
Supported PR candidateCobertura; supported event; baselineInspect upload, mapping and displayed result
Editorial fixtures, not executions. The third row is a candidate to investigate, not a guaranteed successful upload.

Keep the test result constant while varying one suspected gate. Otherwise, a changed dependency, report format and trigger in the same run can make the outcome hard to interpret. The fixture matrix records the intended differences. Its execution-status cells explicitly say unrun, so readers can distinguish a plan from an observed result.

Next, run only the comparison that fits your own disposable test repository. Record the installed tool versions, action reference, commit, event and artifact. Capture the first actionable notice or error. Once you have that evidence, decide whether rerunning tests addresses the actual failure or merely repeats a step that already succeeded.

Diagnostic flow separates test result, actual Cobertura report, event and PR association, upload notice, and displayed denominator
Read the evidence at each gate. A passed test, an accepted report and a displayed PR percentage are different outcomes.

Read the denominator before quoting coverage

Our synthetic worksheet contains eight records: six eligible line records and two deliberately unusable records. Four eligible lines have positive hit counts and two have zero hits. Under the worksheet’s stated rule, the coverage fraction is 4 ÷ 6, or 66.7% after rounding to one decimal place.

Fictional worksheet has four covered and two uncovered eligible changed lines, giving 66.7%; two unusable records are excluded
This is an editorial arithmetic example. We did not submit these records to GitHub, measure its exclusion logic or reproduce a pull-request display.
Worksheet componentRecordsTreatment in this example
Covered eligible lines4Numerator and denominator
Uncovered eligible lines2Denominator only
Unusable line number1Excluded
Unusable hit count1Excluded
Four covered plus two uncovered equals six eligible records. The two exclusions are explicit assumptions of this fictional worksheet.

However, do not turn a missing hit count into a zero-hit observation. Those states answer different questions. A zero is an observed value in the fixture; a blank is unusable for its chosen calculation. Likewise, do not copy the worksheet denominator into a real PR without checking which files and changed lines the service actually matched.

Coverage also does not establish that assertions are useful or that every important behaviour was exercised. Use it to locate questions for review, then inspect the relevant tests and requirements. A higher percentage alone cannot show that a user journey works or that a security boundary is correctly enforced.

Use the downloads as an evidence ledger

Start with the unrun-fixture matrix to identify the suspected gate. Then inspect the fictional line records to reproduce the calculation. Finally, use the blank diagnostic ledger to retain evidence from your own run. Its empty cells are intentional; fill them with observations rather than treating the example as a completed audit.

Tech Consulting Tailored to Your Coding Journey

Get expert guidance in coding with a personalized consultation. Receive unique, actionable insights delivered in 1-3 business days.

Get Started

For related review habits, see our Stylelint autofix review and Cargo warning coverage guide. Each separates a tool’s message from the stronger conclusion a maintainer may want to draw.

Method and limitations

Research checked on 27 November 2026. We read the official GitHub announcements and setup guidance, constructed three editorial fixtures, and checked the synthetic arithmetic locally. We did not run the uploader, query a real repository or benchmark any plan. The fixtures are a reusable investigation design, not empirical success rates.

Suggested citation: Learn Coding USA, “GitHub Coverage Missing? Check the Report Before Rerunning Tests”, 27 November 2026. Keep the unrun-fixture and fictional-calculation qualifications beside any reused figures.