AlessioGiacobbe's avatar

Cannot run --parallel tests

hello! i'm trying to run my integration and unit tests in parallel, i have followed the official guide and installed paratest as a dev dependency. But when i try to run them with the --parallel parameter i get

NunoMaduro\Collision\Adapters\Laravel\Exceptions\RequirementsException 
Running Collision 8.x artisan test command in parallel requires at least ParaTest (brianium/paratest) 7.x.

I tried searching online and i don't understand why i get this. i'm running laravel 12 on php 8.4 and phpunit.

1 like
6 replies
vincent15000's avatar

That's strange, I don't get this problem.

Are you using PHPUnit or Pest ?

Is it perhaps a typo problem ?

--parrallel has to be written with only one r => --parallel.

AlessioGiacobbe's avatar

Thanks, I’m using php unit, and that was a typo i did in this post only, I get that error writing it correctly.

1 like
vincent15000's avatar
Level 63

Have you tried to use PHP 8.3 instead of PHP 8.4 ?

vincent15000's avatar

If you downgrade, perhaps it's worth reloading all vendor dependencies.

Please or to participate in this conversation.