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 "