noregression / coverage-reporter
Print the total code coverage and exit with the right exit code
0.1.0
2015-12-17 21:34 UTC
Requires
- symfony/console: ^2.6
This package is not auto-updated.
Last update: 2024-10-26 19:21:33 UTC
README
Prints out the code coverage and exits with an error if the code coverage is below the threshold.
The coverage is determined by a clover coverage report that can be generate by PHPUnit, just by adding the --coverage-clover
option.
Installation
composer require noregression/coverage-reportor
Usage
bin/ci coverage:report /tmp/clover.xml -m 90
Replace /tmp/clover.xml
with the path to your clover coverage report.
-m 90
means the minimum code coverage must be 90%.