# coverage

> Coverage data collection, manipulation and formatting for Dart

Source: https://talira.ai/catalog/coverage-vd3ka0pc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / testing / code coverage](https://talira.ai/categories/developer-tools/testing/code-coverage), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

coverage is the Dart team's package for collecting and formatting code coverage in Dart. Its `collect_coverage` tool gathers coverage JSON from the Dart VM Service, `format_coverage` turns it into LCOV or a pretty-printed report, and `test_with_coverage` runs a package's tests and writes `coverage/lcov.info` in one step. It installs with `dart pub global activate coverage`, has partial support for pub workspaces, and is BSD-3-Clause licensed. It lives in the dart-lang/tools monorepo.

## Links

- GitHub: https://github.com/dart-lang/tools
- Docs: https://pub.dev/documentation/coverage/latest/

## Problems it solves

- measure test coverage of my Dart package
- generate an lcov.info file from my Dart tests for a coverage service
- see which lines of my Dart code my tests never run

## Features

- test_with_coverage runs tests and writes lcov.info in one command
- collect_coverage reads coverage from the Dart VM Service
- format_coverage outputs LCOV or pretty-printed reports
- partial support for pub workspaces

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.42, momentum 0.17, community 0.99, backing 0.55, extensibility 0.00.

- last commit 3 days ago
- 200 commits in the last 90 days
- latest release api_summary-v1.3.1 3 days ago
- 123 GitHub stars
- 302 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Alternatives

- [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.
- [Codecov](https://talira.ai/catalog/codecov-pd0rdj0n.md): More than just code coverage.
- [pytest-cov](https://talira.ai/catalog/pytest-cov-9qgpya10.md): Pytest plugin for measuring coverage

## Sources

[^1]: https://github.com/dart-lang/tools/blob/main/pkgs/coverage/LICENSE (checked 27 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
