Bartłomiej Gajda fa6e96486e fix(sharding): strip every paratest-only option from the --list-tests sub-process (#2076)
* fix(sharding): strip every paratest-only option from the `--list-tests` sub-process

`--update-shards` (and `--shard` without a shards.json) discovers the test classes by
re-running Pest with `--list-tests`. That sub-process is a plain PHPUnit run, but only
`--parallel`, `-p`, `--processes` and `--runner` were removed from its arguments, so any
other ParaTest option killed the run before a single test:

    pest --parallel --update-shards --max-batch-size=100
    Unknown option "--max-batch-size".

Strip every option ParaTest defines that PHPUnit does not (`--max-batch-size`/`-m`,
`--max-processes`, `--passthru-php`, `--tmp-dir`, `--functional`, `--no-test-tokens`,
plus the existing `--processes` and `--runner`), in both `--option=value` and
`--option value` form.

* fix(sharding): strip ParaTest's `-m` with its value attached (`-m100`)

ParaTest reads `-m100` as `--max-batch-size=100`, but the option check split
arguments on `=` only, so the attached form reached PHPUnit's `--list-tests`
sub-process, which rejects `-m`. `-p` is left alone: Pest reads it as
`--parallel`.

---------

Co-authored-by: Punyapal Shah <mrpunyapal@gmail.com>
2026-11-27 11:54:04 +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-26 07:49:40 +00:00
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-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%