pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: --parallel crashes with paratest 7.28.0: SuiteLoader::$tests is now grouped

Open aschkenasy opened this issue 3 weeks ago • 0 comments

What Happened

Since brianium/paratest v7.28.0, pest --parallel fails before any test runs:

vendor/pestphp/pest/src/Plugins/Parallel/Paratest/WrapperRunner.php:646

Pest's constraint "brianium/paratest": "^7.27.5" allows 7.28.0, so a plain composer update causes this.

How to Reproduce

  • Use any Pest 5.x project.
  • Run composer update brianium/paratest so it resolves to v7.28.0.
  • Run vendor/bin/pest --parallel.

(Pinning brianium/paratest to ~7.27.5 makes the error go away.)

Sample Repository

No response

Pest Version

5.3.5 (also checked the 5.x branch as of 2026-11-11)

PHP Version

8.5.7

Operation System

Linux

Notes

The smallest fix is to flatten the groups in getTestFiles():

foreach (array_filter(
      array_merge(...$suiteLoader->tests),
      fn (string $filename): bool => ! str_ends_with($filename, "eval()'d code")
) as $filename) {

But flattening throws away paratest's new "run together" grouping. A complete fix would probably keep each group on one worker. Until then, paratest <7.28 would at least stop new installs from breaking.

aschkenasy avatar Nov 12 '26 21:11 aschkenasy