Norby Baruani 5cfb4133bf [5.x] Make time-based sharding namespace-agnostic and forward --test-directory (#1677)
* refactor(shard): extract parseListTestsOutput for testability

* test(shard): characterize parseListTestsOutput current behavior

* fix(shard): parse any PHP FQCN namespace from --list-tests

* fix(shard): forward --test-directory to list-tests subprocess

* chore: lint + snapshot fixups

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(shard): make extracted helpers private, test via reflection

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* revert visual_snapshot_of_help_command_output

* revert visual_snapshot_of_help_command_output

* keep function removeParallelArguments

* strip --processes argument when building list-tests command

The removeParallelArguments method was not filtering --processes flags, causing the list-tests subprocess to fail when parallel execution was enabled. This prevented time-based sharding from working correctly with the --parallel option.

Now both --parallel/-p and --processes arguments are removed from the command used to enumerate tests, ensuring the subprocess runs successfully.

* test: re-add namespace-agnostic sharding tests

- 5.x merge kept describe()-style test file, dropped PR #1677 tests for parseListTestsOutput + buildListTestsCommand. Re-add them in matching style.
- Also fix removeParallelArguments test broken by merge: source array_values() + strips --processes, so expects ['bin/pest','tests/'].

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-06-14 13:09:30 +01:00
2026-06-12 07:29:53 +01:00
wip
2026-05-02 19:30:14 +01:00
2024-01-25 18:06:35 +01:00
2026-06-12 07:29:53 +01:00
2020-08-04 12:54:49 +03:00
2024-12-01 20:41:34 +00:00
2026-06-12 20:30:22 +01:00
2020-05-11 18:38:30 +02:00
2026-04-10 16:50:10 +01:00
2026-04-10 16:50:10 +01:00
2026-06-12 07:29:53 +01:00
2025-12-30 14:48:33 -05: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 PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.

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.

Platinum Sponsors

Gold Sponsors

Premium Sponsors

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

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.6 MiB
Languages
PHP 98.8%
JavaScript 0.6%
HTML 0.5%