facile-it / paraunit

Run PHPUnit tests in parallel
https://engineering.facile.it/paraunit/
Apache License 2.0
134 stars 14 forks source link

Add `--sort` option #205

Closed Jean85 closed 1 year ago

Jean85 commented 1 year ago

I needed to execute tests in random order to even the load on additional services in CI (i.e. a Mongo DB), so this is the first implementation of the --sort option. I intentionally avoided using the overlapping name of --order-by from PHPUnit because I didn't find a way yet to cleanly hook into that king of behavior (size sorting, defect sorting). I'll see if I'll be able to change that in the future.

This will be in a 2.1 release, while everything else will be pushed into a 2.2.