pestphp / pestphp/pest

[Bug]: vendor/pestphp/pest/src/Plugins/Shard.php regex doesnt include modules/**/tests/ directories

Open
#1,688 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
11.7k
Forks
538
Avg merge
4d 11h
Merged PRs (30d)
8

Description

What Happened

When trying to generate the shards.json with pest --update-shards, it detects a different set of files than with pest --list-tests.

How to Reproduce

run pest --update-shards with a module structure as described above

Sample Repository

No response

Pest Version

4.6.3

PHP Version

8.5

Operation System

macOS

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in vendor/pestphp/pest/src/Plugins/Shard.php and inspect the regex used by --update-shards. Compare the files it detects with those found by --list-tests for a modules/**/tests/ structure, then verify that both commands produce the same test set.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.