A code coverage checker for phpunit.
composer require handcraftedinthealps/code-coverage-checker --dev
phpunit --coverage-php "Tests/reports/coverage.php"
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0"
Instead of line
you can use class
or method
.
You can also check only specific directories:
vendor/bin/code-coverage-checker "Tests/reports/coverage.php" "line" "96.0" "Directory/A" "Directory/B"