fruitcake/phpunit-tia-laravel
Run only the tests affected by your changes. This Laravel integration for PHPUnit test impact analysis maps code changes to dependent tests, cutting suite runtimes while keeping coverage reliable.
Architecture fit
fruitcake/phpunit-tia-laravel is a Test Impact Analysis (TIA) layer for PHPUnit that records per-test code coverage once, then uses git diffs in CI to run only the tests whose covered lines changed. It is a developer-productivity/CI-cost tool, not a runtime dependency — it sits entirely in require-dev and touches no production code path.phpunit-tia package. The Laravel-specific value is exactly what v0.1.1 touches: framework bootstrapping (bootstrap/app.php, container/bootstrap boot) is noise for impact analysis, because a change there would otherwise mark the entire suite as affected. v0.1.1's single change (PR #2, "Leave booting the application out of the coverage") is the first correctness-relevant fix in the Laravel integration.Integration feasibility
Technical risk
Key questions
php artisan test --parallel?Stack fit
--coverage-* output already configured), and any policy that forbids Xdebug/pcov in CI images.Migration path
require-dev with an exact pinned version (e.g. 0.1.1, not ^0.1) given pre-1.0 status.Compatibility
composer.json before pinning; the release note gives no compatibility signal.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
Recommendation: Worth a low-cost spike given the potential CI-time savings, but do not gate merges on it at v0.1.x. Adopt in shadow mode, pin to 0.1.1, regenerate maps on upgrade, and revisit for production gating at v1.0 or after demonstrated zero-escape shadow data.
How can I help you explore Laravel packages today?