Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run tests in Laravel in parallel, while excluding some tests?

Both php artisan test --parallel

and

php artisan test --exclude someGroup (this excludes tests which are annotated with someGroup)

work, but

php artisan test --parallel --exclude someGroup

doesn't

I saw

enter image description here

However I can't think of a reason why these 2 couldn't be combined, so does somebody have a solution to this problem perhaps?

The "--exclude" option does not exist.

like image 971
online Thomas Avatar asked Oct 18 '25 15:10

online Thomas


1 Answers

Turns out the option name is different under paratest:

php artisan test --parallel --exclude-group=someGroup
like image 61
Mostafa Bahri Avatar answered Oct 21 '25 08:10

Mostafa Bahri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!