facile-it / paraunit

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

Add --chunk-size option #164

Closed pczerkas closed 2 years ago

pczerkas commented 2 years ago

New option --chunk-size (defaults to 1) when set to larger than 1 changes paraunit runner behaviour to create filtered "phpunit_[0|1|...].xml" file per process with < testsuite > multiple < file > tags chunked from master phpunit.xml file that are further stuffed to PHPUnit.

This way bootstrapping overhead (was: bootstrap for each test class, is: bootstrap only once per chunk of tests files) is reduced.

pczerkas commented 2 years ago

Added Ctrl-C handling (to not leave generated phpunit xml files).

pczerkas commented 2 years ago

Some more changes to Ctrl-C handling.

Jean85 commented 2 years ago

165 merged, can you please merge the main branch?

pczerkas commented 2 years ago

I think it's ready, it was pleasure to contribute to such well written project :)

Jean85 commented 2 years ago

I hope that you don't mind, I've pushed the last commits to put this past the finish line. I want to release this (and much else) as 1.3.

Thank you for your work!