feat: add --parallel-chunk-size option#80
feat: add --parallel-chunk-size option#80Daniel-Marynicz merged 1 commit intoDaniel-Marynicz:mainfrom
Conversation
|
Thank you for this contribution. |
I can create another PR to fix phpstan / phpcs and the CI if you want |
|
You can remove phpstan/phpcs and addd to workflow tests current php versions , update ubuntu version. |
|
and when will be ready then i run workflow tests this in github action. Thank you. |
|
and please add current symfony version to the tests matrix |
|
Please resolve conflicts. |
5e96105 to
ea6285a
Compare
I know, you've just merged my first PR, give me 2 secs :-) I'll have to disable the chunk feature for old behat versions that do not support it |
ea6285a to
ea4f786
Compare
Behat handles multiple paths as argument since Behat/Behat#1611
By implementing it in this extension, we can re-use the same bootstrapped behat kernel for many tests at once, while keeping the parallelization. On projects with a big starting overhead, we can accelerate tests a lot.
I've tested my branch on a project with 205 feature files and options
--parallel-feature 6with and without--parallel-chunk-size 10: 42s -> 32s (~25% faster).Some remarks about this PR and the project
PHP version
While Behat does not support php <= 8.1, this project still allows php 7.2. I've kept the old not-typed syntaxe.
--rerun and features
Even if the README says that
--rerunis not available for--parallel-feature, it seems to be fully working on my branch (and infeatures/chunk-size.feature)Missing qa tools
phpunit & behat tests are 100% passing on this branch, but there are some issues on the
mainbranch with phpcs & phpstan :masterbranch, phpstan find 24 errors and phpcs 3 errorsubuntu-20.04is not available anymore for github actions