2

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.

online Thomas
  • 8,864
  • 6
  • 44
  • 85

2 Answers2

1

Laravel's artisan does not support --exclude when running tests. It has been asked previously and the developers struggled to understand a use case.

You do have the option of using Paratest.

James Risner
  • 5,451
  • 11
  • 25
  • 47
1

Turns out the option name is different under paratest:

php artisan test --parallel --exclude-group=someGroup
Mostafa Bahri
  • 2,303
  • 2
  • 19
  • 26