You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: TIA marks a source edit made during a run as tested, so no later run selects it #1972
TIA records the state of the working tree when a run ends. An edit to a source file made while the run is in progress is therefore stored as already tested, and the next run prints No affected tests found. and exits 0.
A breaking edit made 12 s into a 37 s run produced no warning. The next --tia run selected nothing, while the same tests failed (12 failures) when run by path.
During a --fresh recording the same happens, with no warning.
Structural files are handled: an edit to phpunit.xml during a recording gives WARN Project files changed during the run — discarding recorded edges. Source files get no such check.
Expected: snapshot the tree when the run starts, or compare the start and end states and treat any file that changed during the run as still changed.
How to Reproduce
Configure TIA and record a graph with vendor/bin/pest --tia.
Start vendor/bin/pest --tia after a change that selects a long-running set of tests.
While it runs, introduce a breaking change in a source class those tests cover.
When the run finishes, run vendor/bin/pest --tia again — No affected tests found., exit 0.
Run the covering tests by path — they fail.
Sample Repository
No response
Pest Version
5.3.2
PHP Version
8.5.8
Operation System
macOS
Notes
Same root shape as #1856 (end-of-run state recorded for code the run never executed), but triggered by an uncommitted working-tree edit rather than a commit, so the fix there (stamping HEAD at start) would not cover it.
Activity