michaelmoussa / php-coverage-checker
Automated code coverage percentage checking
Installs: 83 625
Dependents: 5
Suggesters: 0
Security: 0
Stars: 24
Watchers: 4
Forks: 9
Open Issues: 1
This package is not auto-updated.
Last update: 2023-12-09 14:33:12 UTC
README
php-coverage-checker is a library for automated code coverage percentage checking.
Initial commit is 100% the work of Ocramius: https://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/
Installation
Composer!
composer require --dev michaelmoussa/php-coverage-checker
Usage
- Generate XML Code Coverage using PHPUnit
- Run
vendor/bin/php-coverage-checker /path/to/clover.xml <minimum coverage percentage>
- e.g.
vendor/bin/php-coverage-checker build/clover.xml 100
- e.g.