code coverage checker
1.0.0
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 "
您可以使用class
或method
代替line
。您还可以仅检查特定目录:
vendor/bin/code-coverage-checker " Tests/reports/coverage.php " " line " " 96.0 " " Directory/A " " Directory/B "