handcraftedinthealps/code-coverage-checker
CLI tool to enforce PHPUnit code coverage thresholds. Generate a coverage.php report, then check line/class/method coverage against a minimum percentage, optionally limited to specific directories—ideal for CI to fail builds when coverage drops.
Directory/A) to target refactoring efforts.For Executives: "This tool automates code coverage enforcement in our PHP stack, reducing bugs and tech debt by blocking low-coverage merges. For example, we can mandate 96% line coverage for critical modules—like a ‘seatbelt’ for our codebase. It’s lightweight, open-source, and integrates seamlessly with our existing PHPUnit tests, requiring minimal setup. Early adoption could cut regression bugs by 30% (per industry benchmarks) while keeping development velocity intact."
For Engineering: *"We’re adding a CI gate for code coverage using code-coverage-checker. Here’s why:
src/, 80% for tests/).src/Service/X.php: 82%).phpunit.xml as a pre-commit hook and CI check. Example workflow:phpunit --coverage-php=coverage.clover
vendor/bin/code-coverage-checker coverage.clover line 96 src/
Impact: Catches untested edge cases early, aligns with our ‘quality gates’ initiative."*
How can I help you explore Laravel packages today?