check_coverage
0.0.8, released 2 years ago by karapetov.com
CLI tool that checks lcov coverage against a threshold
WASM-ready
What it does
It reads an lcov tracefile and exits with status 0 if the coverage is at or above the given percentage, otherwise it exits with status 1 and prints the top uncovered files.
AI-written summary of version 0.0.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- Enforcing a minimum coverage percentage in CI pipelines
- Running coverage checks locally during development
Skip it when
- You need to analyze coverage in formats other than lcov
- You want a graphical coverage report
Strengths
- Very small dependency footprint
- Simple command line usage
- No build or code generation required
Weaknesses
- Only supports lcov tracefiles
- No support for other coverage formats or platforms
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
```
dart test --coverage=.coverage
format_coverage -l -c -i .coverage --report-on=lib | check_coverage 98
```Alternatives
Packages that do the same job and could replace check_coverage.
- fluttersdk_telescope
Passive runtime inspector for Flutter capturing HTTP, logs, exceptions, and DB queries.
73Compare - cli_notify
Check pub.dev for updates for your Dart CLI and print update information.
46Compare - shared_versions
A CLI tool to share and synchronize versions for multiple packages in Flutter.
37Compare