Skip to content

Bugfix/sharding module fix#1713

Open
Orrison wants to merge 6 commits into
pestphp:4.xfrom
Orrison:bugfix/sharding-module-fix
Open

Bugfix/sharding module fix#1713
Orrison wants to merge 6 commits into
pestphp:4.xfrom
Orrison:bugfix/sharding-module-fix

Conversation

@Orrison
Copy link
Copy Markdown

@Orrison Orrison commented May 18, 2026

What:

  • Bug Fix
  • New Feature

Description:

Resolve an issue with sharding tests in a repo that has tests in non-standard tests directories (such as a repo using modular approaches, more details in the related issue)

In my tests I actually test the sharding functionality to make sure it is all working so it ends up actually generating a tests/.pest/shards.json file. Which is why during the afterAll of the test I unlink it.
This is fine now, but will be problematic and weird if Pest itself ever wants to shard it's own tests.
So I just wanted to ask if this was acceptable for now? If not, my thought was I could also add to this PR a new option to override the path shards.json is written to.
As maybe someone at some point would want that and it would allow us to point these tests to generate the file somewhere we can .gitignore it.

Related:

#1711

Orrison added 6 commits May 18, 2026 17:14
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Signed-off-by: Kevin Ullyott <kevin.ullyott@canyongbs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant