facile-it / paraunit

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

Run Multiple test files #123

Closed bendavies closed 6 years ago

bendavies commented 6 years ago

Hey there!

I'm trying your tool as a replacement to paratest. Great work!

I want to be able to specify multiple individual test classes to run, something like this: vendor/bin/paraunit run tests/Test1.php tests/Test2.php

Is this possible at all with any of the current options, or would you consider adding it?

Thanks!

bendavies commented 6 years ago

It seems I can either do --filter "Test1|Test2" or --filter tests/Test1.php --filter tests/Test1.php

Jean85 commented 6 years ago

Hi and thanks!

The --filter option is passed through natively to PHPUnit, so yes, if PHPUnit supports that syntax it works out of the box. An other thing that you can do is using a more generic string filter over the test file names, see the docs about the string filter.