check_coverage

Creator: coderz1093

Last updated:

0 purchases

check_coverage Image
check_coverage Images

Languages

Categories

Add to Cart

Description:

check coverage

check-coverage #
A tiny Dart CLI tool to check if code coverage is below the threshold.
Pass the content of the trace file (lcov) as the input. Provide the desired coverage as the argument.
Example usage in a Dart project:
dart test --coverage=.coverage
format_coverage -l -c -i .coverage --report-on=lib | check_coverage 98
copied to clipboard
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.