Jhon Farias a2d3e6badd fix(tia): support a Pest project nested in a git repository (#1914)
* fix(tia): support a Pest project nested in a git repository

Tia refused to run whenever the Pest project was not the git repository
root, because git prints and addresses paths relative to the repository
root while the dependency graph is keyed on project-relative paths.

Translate at every git boundary instead of guarding against the mismatch.
`Git::pathPrefix()` resolves the directory of the project inside the
repository, and `ChangedFiles` strips that prefix off the paths git prints,
drops the paths of sibling packages, and prepends it to `git show`. Both
diffs read `-z` records, because `core.quotePath` C-quotes a path outside
ASCII, and `--no-relative` holds the frame when a user sets `diff.relative`.

Three places read `<projectRoot>/.git` directly, which is absent in a
nested project and in a worktree, and now ask git: `BaseRemote`, `Storage`
and `Fingerprint::isTrackedByGit()`. `Storage` folds the prefix into the
state key so two projects in one repository do not share a graph, and the
fingerprint carries the prefix so a baseline published by a sibling project
is rejected. A project at the repository root keeps the key and the
fingerprint it had.

`git check-ignore` runs without `--no-index`, so a tracked file that an
ignore rule matches counts as part of the project on both sides of the
boundary.

Changes outside the project are dropped and reported by count in the run
summary, so a nested project does not look idle when the repository around
it moved.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(tia): keep whitespace at the edge of the paths git returns

* fix(tia): run the full suite when a PHP file outside a nested project changes

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-11-22 20:41:58 +05:30
2026-10-31 14:26:34 +00:00
2026-10-31 14:26:34 +00:00
2026-10-27 10:34:49 +00:00
2026-11-07 03:15:59 +00:00
2026-10-07 23:02:36 +04:00
2020-08-04 12:54:49 +03:00
2026-08-24 09:31:34 +01:00
2026-11-07 03:15:59 +00:00
2026-11-16 23:20:56 +05:30
2020-05-11 18:38:30 +02:00
2026-04-10 16:50:10 +01:00
2026-07-18 01:10:01 +01:00
wip
2026-08-05 19:58:57 +01:00
2026-08-07 14:52:56 +01:00
2026-11-07 03:15:59 +00:00
2026-11-20 17:07:24 +00:00
2026-09-07 12:01:12 +01:00
2026-06-12 07:29:53 +01:00

PEST

GitHub Workflow Status (5.x) Total Downloads Latest Version License Why PHP in 2026 YouTube Channel Subscribers


Pest v5 Now Available: Read the announcement ».

Pest is an elegant testing framework for PHP developers and AI agents.

Sponsors

We cannot thank our sponsors enough for their incredible support in funding Pest's development. Their contributions have been instrumental in making Pest the best it can be. For those who are interested in becoming a sponsor, please visit Nuno Maduro's Sponsor page at github.com/sponsors/nunomaduro.

Pest is an open-sourced software licensed under the MIT license.

S
Description
Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
Readme 9.5 MiB
Languages
PHP 99.3%
HTML 0.6%