handcraftedinthealps / code-coverage-checker
A code coverage checker for phpunit
Installs: 51 527
Dependents: 7
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 3
Open Issues: 0
Requires
- php: ^7.2 || ^8.0
- symfony/console: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0 || ^7.0
README
A code coverage checker for phpunit.
Installation
composer require handcraftedinthealps/code-coverage-checker --dev
Usage
Generate coverage
phpunit --coverage-php "Tests/reports/coverage.php"
Check coverage
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"