dvdoug/behat-code-coverage
Behat extension that generates code coverage reports for PHP applications. Wraps PHPUnit’s php-code-coverage library to produce familiar, interoperable reports and integrates coverage generation into your Behat test runs.
Enhancing Test Quality & Developer Experience:
Roadmap: Observability & Compliance
Toolchain Integration
Cost Savings
Adopt if:
Look Elsewhere if:
php-code-coverage.*"This package lets us measure and enforce test coverage for business logic—just like we do for unit tests—without adding overhead. By integrating coverage reports into our Behat workflow, we can:
*"This is a drop-in extension for Behat that generates coverage reports using the same library as PHPUnit (php-code-coverage), so:
--no-coverage).
Example use case: Add this to your CI pipeline to fail builds if Behat coverage drops below 80% for src/UseCases/."**"This solves the ‘how do I know my Behat tests cover the right code?’ problem by:
behat.yml with 10 lines of config to enable coverage, then add a CI check for thresholds."*How can I help you explore Laravel packages today?