# covr

> Test Coverage for Packages

Source: https://talira.ai/catalog/covr-kjtm5623
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / testing / code coverage](https://talira.ai/categories/developer-tools/testing/code-coverage), [languages / r](https://talira.ai/categories/languages/r)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [R infrastructure (r-lib)](https://talira.ai/orgs/r-lib.md)
- Creator: Jim Hester

covr tracks test coverage for an R package and reports it locally (a line-by-line HTML report, a summary in the console) or uploads it to Codecov or Coveralls. It measures the package's R code and its compiled C, C++, Fortran and Rust code together in one report, works with any testing framework, and can write a Cobertura XML file for other tools. usethis sets up a GitHub Actions workflow that runs it on every push.

## Links

- Website: https://covr.r-lib.org/
- GitHub: https://github.com/r-lib/covr
- Docs: https://covr.r-lib.org/reference/

## Problems it solves

- find out which lines of my R package my tests never run
- measure coverage of the C++ code in my R package alongside the R code
- upload my R package's test coverage to Codecov from GitHub Actions
- see a line-by-line coverage report for an R package in the browser
- export R test coverage as Cobertura XML for my CI tools

## Features

- coverage of R code and compiled C, C++, Fortran and Rust code
- local HTML and console reports
- upload to Codecov or Coveralls
- Cobertura XML output
- works with any testing framework
- GitHub Actions setup through usethis

## Trust

Overall: 0.62 out of 1.
Signals: maintenance 1.00, adoption 0.51, momentum 0.16, community 0.75, backing 0.50, extensibility 0.00.

- last commit 6 days ago
- 136 commits in the last 90 days
- latest release v4.0.0 13 days ago
- 350 GitHub stars
- 74 contributors
- backed by R infrastructure (r-lib)
- created by Jim Hester

## Alternatives

- [Codecov](https://talira.ai/catalog/codecov-pd0rdj0n.md): More than just code coverage.
- [Coveralls](https://talira.ai/catalog/coveralls-m8sgpjdw.md): We help you deliver code confidently by showing which parts of your code aren't covered by tests.
- [pytest-cov](https://talira.ai/catalog/pytest-cov-9qgpya10.md): Pytest plugin for measuring coverage

## Sources

[^1]: https://github.com/r-lib/covr/blob/main/DESCRIPTION (checked 25 Nov 2026)
[^2]: https://github.com/r-lib/covr/blob/main/LICENSE (checked 25 Nov 2026)
