Add fallback when git is unavailable in TIA mode (Docker environments)
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Description
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".
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing TIA mode's git dependency and the MissingDependency exception raised when git is unavailable. Reproduce the failure with ./vendor/bin/pest --tia in a minimal Docker environment, then verify that TIA handles the missing binary without crashing and that normal TIA behavior remains available when git is installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, git, php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100