Add fallback when git is unavailable in TIA mode (Docker environments)
Author: njoguamosCreated Jul 28, 2026Updated Sep 18, 2026
When enabling Pest V5's TIA (Test Impact Analysis) mode in a Dockerized application where the git binary is not installed, the process crashes with a MissingDependency exception: The feature "Tia mode" requires "git".
This prevents running tests with --tia flags in minimal Docker containers.
Reproduction
- Create a Dockerfile without git (common in production images)
- Install dependencies including Pest
- Run ./vendor/bin/pest --tia
- Observe error: The feature "Tia mode" requires "git".
Source: pestphp/pest