Skip to content
ÁgilNews Belém, Pará PT-BR
Software development

GitHub now flags test coverage reports uploaded in the wrong format

Uploads could previously appear successful while pull requests showed no coverage. The workflow log now points teams to the step that needs fixing.

AI-generated editorial illustration of an optical scanner reading a violet sheet with a bar chart.

Tests passed and the file uploaded, yet the pull request showed no coverage. On November 23, GitHub made one cause of that problem easier to diagnose. The Code Quality upload-code-coverage action now stops the upload when the file does not use the Cobertura XML format. The GitHub Actions log explains the failure.

Where to make the fix

Test coverage shows which parts of the code ran during testing. Teams seeing the new warning should inspect the file produced by their test runner. If it uses another format, GitHub recommends configuring the runner to export Cobertura XML or converting its output before upload.

Processing is more forgiving for valid reports. When an entry lacks a usable line number or execution count, the service can skip that entry and process the rest of the file. If a line is missing from the results, it is worth checking the original report.

Which repositories get the change

Code Quality must be enabled on the repository. The change is available on GitHub Team and Enterprise Cloud, including the data residency offering. Self-hosted GitHub Enterprise Server is outside the scope of the announcement.

Sources