Configure Pest to run Test Impact Analysis by default in pest.php so only tests covering modified files execute.
Running full test suites on every minor edit slows down development feedback. Configuring TIA in pest.php automatically detects file changes and runs only affected tests.
// tests/Pest.php
uses()
->compact()
->in(__DIR__);
// Run only tests covering changed code automatically
// Terminal: ./vendor/bin/pest --tia
- Slashes test execution duration during rapid local iterations
- Tracks code coverage artifacts to identify tests covering edited lines
- Can be toggled via CLI flag --tia or environment config
Related Tips
View all tips →Streamline Testing with Pest Test Impact Analysis (TIA)
Enable the Tia Engine in Pest to only re-run tests affected by your latest code changes while replaying cached results for unaffected tests.
Enable Compact Test Output Printer in Pest
Use the --compact flag or set it in your composer.json test script for minimal single-character test progress indicators.