check_coverage 0.0.8 copy "check_coverage: ^0.0.8" to clipboard
check_coverage: ^0.0.8 copied to clipboard

A tiny Dart CLI tool to check if code coverage is below the threshold. Analyzes the tracefile used by lcov.

example/README.md

Example usage in a Dart project:

dart test --coverage=.coverage
format_coverage -l -c -i .coverage --report-on=lib | check_coverage 98

The first line runs the tests placing the coverage report in the .coverage folder. The second line produces a combined lcov coverage and passes it to the tool requiring at least 98% coverage.

The tool will exit normally if the coverage is at or above the threshold. Otherwise, it will set the exit status to 1 and print the top 3 uncovered files.

6
likes
160
points
897
downloads

Publisher

verified publisherkarapetov.com

Weekly Downloads

A tiny Dart CLI tool to check if code coverage is below the threshold. Analyzes the tracefile used by lcov.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

lcov_tracefile

More

Packages that depend on check_coverage