Search code examples
laravelphpunitlaravel-testing

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.


Solution

  • Turns out the option name is different under paratest:

    php artisan test --parallel --exclude-group=someGroup