Parallel PHPUnit

Parallel PHPUnit

by Joey Andres -
Number of replies: 2
As you all know, phpunit can be a little slow. To attempt to solve that problem, I have tried to integrate paratest in my test moodle site. After installing I run the following command:


vender/bin/paratest -c phpunit.xml


And it prints that it's using 5 threads and found phpunit.xml. After that, it does nothing. I don't know what's going on. Can someone help me out here.

Average of ratings: -
In reply to Joey Andres

Re: Parallel PHPUnit

by Damyon Wiese -
You are not going to have much luck without some changes under the hood. Each thread would need it's own dataroot, prefix and wwwroot - just like the behat parallel runner.