[Bug]: Combining --parallel
and --random-order-seed
(with integer number) results in uncaught TypeError since 2.31.0
#1206
Labels
What Happened
Running my test suite with a predefined random order seed in parallel results in an uncaught TypeError. Caused by changes made in f004591
With the following stacktrace
How to Reproduce
Sample Repository
No response
Pest Version
2.35.1
PHP Version
8.3.9
Operation System
macOS
Notes
For some reason (I didn't dive any deeper) the
HandleArguments
plugin receives a different set of arguments when running single process (pest.php
) compared to running in parallel processes (worker.php
).The latest receives
--random-order-seed
and the seed<N>
as separate array items. Whereas the single process version it gets a single key--random-order-seed=<N>
. This also explains the reason of the uncaught TypeError and why running with--random-order-seed=A12345
runs without the uncaught TypeError as the additional array item now is a string value.The text was updated successfully, but these errors were encountered: