lencse / min-coverage
Check minimum coverage
v1.0.0
2019-03-08 21:28 UTC
Requires
- corneltek/getoptionkit: ^2.5
Requires (Dev)
- phpunit/phpunit: ~5.7
README
Install
Via Composer
composer require --dev lencse/min-coverage
Usage
Checking code coverage
# Create a Clover XML output of your project with PHPUnit phpunit --coverage-clover build/logs/clover.xml # Check code coverage vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml
Integrating into composer.json
{ "scripts": { "test-all": [ "phpunit --coverage-clover build/logs/clover.xml", "vendor/bin/min-coverage --min-coverage 95 --clover-file build/logs/clover.xml" ] } }
composer test-all
Testing
composer test
License
The MIT License (MIT)