Open source AGPL-3.0 · on GitHub

Code coverage on every pull request.

See which changed lines your tests miss, block merges that drop coverage and track the trend — on GitHub, GitLab and Bitbucket. Self-host it free, or let us run it.

Free for public repositories. Self-hosted is free forever.

An animation of a pull request: the tests finish, gocov uploads coverage, marks lines 87 to 89 as untested in the diff, comments with 91.7% diff coverage, and its check passes so the pull request can be merged.

Works with

  • GitHub
  • GitLab
  • Bitbucket

Reads the coverage your tests already write All formats

  • Go
  • JavaScript
  • TypeScript
  • Python
  • Java
  • Kotlin
  • Ruby
  • PHP
  • C# / .NET
  • Swift
  • Rust
  • C / C++
  • Dart
  • Elixir
  • Scala

Setup

One step in CI. Results on the next pull request.

  1. Sign in with GitHub, GitLab or Bitbucket. Pick your organization, group or workspace.
  2. Add one step after your tests. The + lines, in the CI you already use. Any language.
  3. Open a pull request. Coverage and the untested lines show up on it.
+ lines gocov adds

.github/workflows/test.yml

jobs:  test:    runs-on: ubuntu-latest    permissions:      contents: read      id-token: write    steps:      - uses: actions/checkout@v7      - run: npx jest --coverage      - uses: gocov/gocov-action@v1        with:          files: coverage/lcov.info

No secret to add: GitHub vouches for the job. Full guide

What you get

Coverage where your team already reviews code.

Not another dashboard to check: results land on the pull request itself.

See what a change left untested

gocov checks every changed line against your coverage and comments on the pull request: total coverage, the change, diff coverage and the exact lines no test runs. A new push updates the same comment. On GitHub and Bitbucket those lines are also marked right in the diff.

How pull requests look
A gocov comment on a pull request
gocovbot commented

gocov report for 9f31c2ab7e5d

  • Total coverage: 84.2% (+0.6%)
  • Gate: passed
  • Diff coverage: 91.7% (110/120 changed lines covered)

Uncovered changed lines:

FileLines
src/billing/invoice.ts87-89, 112-115
src/billing/refund.ts41, 56-57

Full report

Block merges that lower coverage

Set a minimum for total or diff coverage, or how far coverage may drop. When a pull request misses it, gocov fails its check, and your branch protection keeps it from merging until tests catch up.

Set up a coverage gate
Pull request checks: tests pass, gocov's coverage gate fails, and the merge is blocked
test Successful in 2m
gocov coverage: 81.9% (-2.3%) — diff coverage 52.4% is below the minimum 80%
Merging is blocked. A required check has failed.

Follow coverage over time

A trend for every branch, a line-by-line view of every file and a badge for your README. Public repositories get a report anyone can open, no sign-in needed.

Public reports and badges
Coverage over time main
82% 68% gate 70% 82.0%
89.4% gocov's own coverage Every commit to gocov is measured by gocov. The report is public. gocov's live coverage badge Open the live report
8 coverage formats, detected from the file
15+ languages, from Go and TypeScript to Swift and Rust
3 forges: GitHub, GitLab and Bitbucket
0 calls home from a self-hosted server

Compare

How gocov compares.

The points that usually decide between coverage tools.

gocov Codecov Coveralls
Open source AGPL-3.0 Source-available (FSL) Proprietary
Self-hosting Free, production-ready Free proof of concept Paid enterprise plan
Annotations in the Bitbucket diff Yes No None documented
Private uploads without a stored secret GitHub, GitLab and Bitbucket CI GitHub Actions GitHub Actions
Gate on diff coverage Yes Yes None documented

Based on each vendor's public documentation and pricing as of December 2026.

gocov vs Codecov gocov vs Coveralls

Self-hosted

Run it on your own servers.

gocov is one Go binary and one Postgres database. Your code and coverage stay on your infrastructure: no telemetry, no license check, nothing calls home.

  • The same product as hosted, every feature included
  • Free under AGPL-3.0: no seats to count, no license key
  • Signed images for amd64 and arm64
  • A production setup with automatic TLS ships in the repo
# try it on your machine
git clone https://github.com/gocov/gocov
cd gocov
docker compose up
# open http://localhost:8080

Pricing

Run it yourself, or let us run it.

The same product either way. Pick who runs the server.

Self-hosted

Free forever

  • AGPL-3.0: the full product, no feature gates
  • Your infrastructure, your data
  • Community support
Self-hosting

Hosted Early access

Free while in early access

  • Backups, upgrades and uptime handled
  • Public repositories free forever, badge included
  • Paid plans for private repositories announced before any billing starts
Start free

Public repositories are free on hosted, forever: fair use, no upload limits.

Add coverage to your next pull request.

Moving from Codecov or Coveralls? The migration guide maps your settings over and keeps the old tool running until the numbers agree.