Package selection guidance compiled from public package information, community data, and project usage.
The coverage package provides tools for manipulating and formatting code coverage data in Dart and Flutter projects. It enables developers to analyze test coverage results, merge coverage reports from multiple sources, and generate human-readable or machine-processable output formats such as JSON or HTML. Designed for use in testing workflows, it supports integration with CI/CD pipelines and helps ensure comprehensive test coverage across platforms including Android, iOS, macOS, Windows, and Linux. The package is maintained by the Dart team and is essential for teams aiming to maintain high-quality, well-tested codebases.
Use cases
Analyzing test coverage after running unit and widget tests
Merging coverage reports from different test environments
Generating HTML or JSON coverage reports for CI/CD
Integrating coverage into automated testing workflows
Visualizing coverage gaps in source code
Key features
Supports merging multiple coverage files
Generates formatted output (HTML, JSON)
Integrates with Flutter and Dart testing tools
Cross-platform compatibility
Provides command-line utilities for coverage processing
Suitable for
Dart and Flutter developers focused on test quality
Teams using CI/CD pipelines with coverage reporting
Projects requiring detailed test coverage analysis
Developers maintaining large test suites
Considerations
Requires proper setup with test runners like `dart test`
May need additional configuration for complex build setups
Output format depends on external tools for visualization
Not a standalone test runner but a post-processing tool
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Overview
This repository is home to tooling related Dart packages. Generally, this means
packages published through the
tools.dart.dev publisher that
don't naturally belong to other topic monorepos (like
dart-lang/build,
dart-lang/test, or
dart-lang/shelf).
A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials.