Creuto is now an OpenAI Select Partner Read More

Software Architecture & Technical

GitHub code coverage vs Codecov: what switching costs you

GitHub code coverage vs Codecov: $10 per active committer against $12 per user, Cobertura-only uploads, no GHES, and when dropping Codecov makes sense.

GitHub code coverage vs Codecov: what switching costs you

GitHub's setup guide says its coverage upload step replaces any third-party coverage upload (Codecov, Coveralls, etc.), and since 4 December 2026 a repository-level coverage view sits behind it. The GitHub code coverage vs Codecov question is now a real one for any team paying a Codecov invoice. The answer is not a free upgrade: GitHub bills $10 per active committer for Code Quality, reads Cobertura XML only, charts the default branch only, and does not run on Enterprise Server. By the end you will know who can switch, how the per-head maths compares, and what you give up.

GitHub code coverage vs Codecov, side by side

The two products overlap on pull request coverage and merge gating, and differ on almost everything around it: the unit you pay for, the report formats they read, and where they run. The table below uses only what each vendor publishes, as of 6 December 2026.

QuestionGitHub Code Quality coverageCodecov
Price$10 per active committer per month, plus Actions minutes and AI creditsPro $12 per user/month; Team $5 monthly or $4 annual, capped at 10 users; Developer free
Who countsAnyone who pushed a commit in the last 90 days to a repository with Code Quality enabled; bots are not chargedAnyone who authors a pull request or merge request on a private repository with Codecov
Report formatsCobertura XML only; an LCOV file fails at uploadCobertura, LCOV, JaCoCo, Clover, Go and many more
Merge blockingBranch rulesets: minimum percentage and maximum dropProject and patch status checks with targets and thresholds
Repository trendDefault branch only, 30-day chart with 14- and 90-day options, public previewProject coverage, listed on Pro and Enterprise
HostsEnterprise Cloud and Team; not Enterprise ServerGitHub, GitLab and Bitbucket; on-prem on Enterprise

What GitHub shipped between May and December 2026

GitHub built its coverage feature in five steps over seven months, and only one of them carried a price. Reading them in order explains why the December release looks bigger than it is.

  1. 26 May 2026: coverage on pull requests entered public preview, showing an aggregate percentage as a PR comment from a Cobertura report uploaded with the upload-code-coverage action. It was free during the preview.
  2. 30 June 2026: merge protection arrived through branch rulesets, also in public preview and free during it.
  3. 20 July 2026: Code Quality became generally available, and billing began automatically that day. The GA note lists coverage from Cobertura reports and coverage thresholds in rulesets among the features.
  4. 4 August 2026: an automatic enablement option that generates the coverage workflow with AI and opens a pull request for you to review.
  5. 4 December 2026: the repository code coverage view, in public preview, with current coverage, a history chart and a target.

The December view is a dashboard on top of plumbing that has existed since summer. If you dismissed GitHub coverage in June because it lacked a trend line, that objection is now answered. The other objections are not.

Is GitHub code coverage free? Only if you already pay for Code Quality

GitHub code coverage is not sold on its own; it needs Code Quality switched on for the repository. The coverage view lists enabling GitHub Code Quality as a prerequisite, and Code Quality costs $10 per active committer, per month since general availability on 20 July 2026. The setup guide says automatic setup carries no additional cost, which is true in the narrow sense that coverage adds nothing to a Code Quality licence you already hold.

The licence is not the whole bill. Code Quality scans run as Actions workflows and consume Actions minutes unless you use self-hosted runners, and AI features draw on a shared credit pool where 1 AI credit equals $0.01. The GA announcement describes the compute charge as the cost of running deterministic CodeQL analysis on GitHub Actions. Coverage itself is just an upload; the scanning that comes with the licence is what spends minutes.

That changes the comparison. If your organisation already enabled Code Quality for its CodeQL findings, coverage is close to free at the margin. If you would enable it only to replace Codecov, you are buying a code-analysis product to get a coverage feature, and you should price the scans as well.

GitHub Code Quality active committer pricing against a Codecov user

The $10 and $12 figures are per person, but the two vendors count different people. GitHub counts anyone who pushed a commit to the repository within the last 90 days, once across the organisation, and does not charge for bots. Codecov counts anyone who authors a pull request or merge request on a private repo with Codecov, plus anyone who uses advanced features on Codecov.io for a private repository.

The gaps are where your bill moves. A contractor who pushed one commit in September still holds a GitHub licence into December, because of the 90-day window. A developer who commits to a shared branch but never opens a pull request counts for GitHub and arguably not for Codecov. And GitHub counts only repositories where Code Quality is enabled, so a team that turns it on for ten services, not two hundred, pays for the people who touch those ten.

The arithmetic only holds with your own numbers. If exactly 100 people would count on both sides, the licence lines are $1,000 a month on GitHub and $1,200 on Codecov Pro, and GitHub's figure still excludes Actions minutes and AI credits. Pull your active-committer list from the last 90 days and your Codecov user list for the same window before you trust either total. Teams of ten or fewer should also look at Codecov Team, which the pricing page lists at $5 per user a month, or $4 billed annually, with a 10-user cap.

What coverage formats does GitHub support? Cobertura XML, and nothing else

GitHub reads Cobertura XML only. The upload action checks the file, and an LCOV report fails with the error “This file is not a Cobertura XML report”. Codecov, by contrast, accepts LCOV, JaCoCo, Clover, Go coverprofiles, Xcode output and roughly two dozen other formats, which is why most pipelines pointed at Codecov never had to think about format.

Most stacks can emit Cobertura with one flag or one extra tool. GitHub's own guide gives the commands:

  • Python: pytest --cov=. --cov-report=xml with pytest-cov
  • JavaScript and TypeScript: nyc report --reporter=cobertura
  • Java: the cover2cover.py script or a JaCoCo-to-Cobertura Gradle or Maven plugin
  • Ruby: add SimpleCov::Formatter::CoberturaFormatter
  • Go: go test -coverprofile=cover.out && gocover-cobertura < cover.out > coverage.xml

Those conversions are small, but they are changes to every test job in every repository, and a converter is one more thing that can drift from the test runner it wraps. Count the repositories that emit LCOV or JaCoCo today before you count the savings.

Can GitHub block merges on code coverage? Yes, through rulesets, not the new target

GitHub blocks merges on coverage through branch rulesets, which can stop a pull request when coverage falls below a minimum percentage or drops by more than a set amount from the default branch. Rulesets start in an evaluate mode so you can see what would have been blocked, then switch to active. The setup guide adds a detail that is easy to miss: with the Restrict code coverage rule, each status check tied to an expected coverage upload should also be a required status check.

The target on the new repository view does something else. It is set by admins and maintainers, and GitHub says plainly that it is for display only and doesn't block merges. Expect someone to set a target of 80% and assume it enforces anything.

Codecov's gating is finer-grained. It posts a project status for overall coverage and a patch status for only the lines a pull request changes, each with its own target and threshold, scoped by flags or paths. GitHub's announcements describe aggregate coverage and a drop threshold; none of them mentions a changed-lines check, so if your team gates on patch coverage, test that before you cancel. And aggregate coverage is a weak signal on its own, which our piece on what coverage hides argues in more detail.

When a Codecov alternative is the wrong call

The strongest case for switching is real. You drop a vendor, an upload token and a third-party integration; the upload job needs only the code-quality: write permission; and results sit in the same pull request view reviewers already use. If you already pay for Code Quality, that case is hard to argue with.

It is the wrong move in five situations:

  • You run GitHub Enterprise Server. The coverage view is not available on Enterprise Server, nor was Code Quality at GA. If you are on GHES, our note on checking your GHES patch number is a better use of this week.
  • Some of your code lives on GitLab or Bitbucket. Codecov supports all three hosts; GitHub covers only its own.
  • You need history beyond the default branch. The repository view tracks the default branch, updates once a day and charts at most 90 days.
  • You run a monorepo on flags and components. Codecov Pro lists flags, carryforward flags and components; GitHub's coverage pages describe labels per upload, not per-component targets.
  • You depend on a preview staying as it is. The repository view is in public preview, and preview features change.

How to replace Codecov with GitHub Code Quality in five steps

A migration from Codecov to GitHub works best run in parallel, with both uploads live for a few weeks, so you can compare numbers before you remove anything.

  1. Enable Code Quality on two or three representative repositories, not the organisation, so the active-committer count stays small while you test.
  2. Switch each test job to emit Cobertura XML and add actions/upload-code-coverage@v1 with the file, language and label inputs. Leave the Codecov upload in place.
  3. Compare the default-branch percentage from both tools. GitHub combines multiple reports and counts lines covered by more than one report once, so a gap usually points at a missing upload, not a bug.
  4. Recreate your gates as rulesets in evaluate mode, mark each upload's check as required, and watch a sprint of pull requests before switching to active.
  5. Remove the Codecov step and token only after the rulesets have blocked something you agree should have been blocked.

If your coverage jobs run inside a larger pipeline rework, our CI/CD implementation team treats the upload step as one change among the others, not a separate project.

Is Codecov worth paying for after December 2026?

Codecov is worth paying for when you need patch-level gates, LCOV or JaCoCo without converters, flags and components in a monorepo, GitLab or Bitbucket, or Enterprise Server. If none of those apply and you already pay for Code Quality, GitHub's built-in coverage covers the common case for no extra licence, and keeping both is paying twice for one percentage.

The next step is a count, not a vote: your 90-day active committers, your Codecov users, the repositories that emit Cobertura today, and the gates your team actually relies on. If you want a second pair of hands on that audit and the migration that follows, our QA and automation engineers can map your current coverage gates to rulesets and run the parallel uploads with you.

Frequently asked questions

GitHub has built-in code coverage through GitHub Code Quality. It shows coverage on pull requests, can block merges through branch rulesets, and since 4 December 2026 has a repository view with default-branch history. You upload Cobertura XML reports from GitHub Actions, and Code Quality must be enabled on the repository.

GitHub code coverage has no separate price, but it requires GitHub Code Quality, which has cost $10 per active committer per month since 20 July 2026. Code Quality scans also consume GitHub Actions minutes unless you use self-hosted runners, and AI features draw on a shared AI credit pool.

GitHub can block merges on code coverage using branch rulesets, with a minimum coverage percentage, a maximum drop from the default branch, or both. Rulesets start in evaluate mode before you enforce them. The target on the new repository coverage view is display only and does not block merges.

GitHub code coverage supports Cobertura XML only. The upload-code-coverage action checks the file, and an LCOV report fails at upload. GitHub's docs show how to produce Cobertura from pytest-cov, nyc, JaCoCo, SimpleCov and Go coverprofiles using gocover-cobertura, so most stacks need one flag or one converter.

A GitHub active committer is not the same as a Codecov user. GitHub counts anyone who pushed a commit to a Code Quality repository in the last 90 days, excluding bots. Codecov counts anyone who authors a pull request on a private repository using Codecov, so the same team can produce different head counts.

Written by

Akash Mohapatra

Akash Mohapatra

Co Founder & Director

6 Dec 2026

·

10 min read

Share

LET'S CONNECT

Connect with Creuto!

Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.