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.
