pestphp / pest

Pest is an elegant PHP testing Framework with a focus on simplicity, meticulously designed to bring back the joy of testing in PHP.
https://pestphp.com
MIT License
9.06k stars 313 forks source link

[Bug]: invalid dataset not showing as FAILED when running with --parallel #1185

Open mtbossa opened 5 days ago

mtbossa commented 5 days ago

What Happened

When I have a test that uses a dataset ->with('my dataset'), but this dataset doesn't exist, and I run sail test --parallel, no FAILED message is shown in the output. However, if I just run sail test, then it'll show as FAILED, so I know something is wrong.

How to Reproduce

Install a fresh Laravel App, add Pest, add a test that uses a non-existent dataset, run ./vendor/bin/pest --parallel.

Sample Repository

https://github.com/mtbossa/pest-parallel-bug-laravel

Pest Version

2.34.8

PHP Version

8.3.8

Operation System

Linux

Notes

Screenshot_20240629_082424 Screenshot_20240629_082401