Open Starkmann opened 1 month ago
Because parallel executes behat multiple times at once. And if it is to be saved to the same xml in each run, then it gets overwritten many times .
OK, im using --parallel-feature like this:
vendor/bin/behat --parallel-feature 4 --colors -c tests/behavior/behat.yml
So i would need to write one xml per feature, right?
Yes this should work. If junit this supports.
This is not supported by behat at all.
With
vendor/bin/behat --parallel-feature -f junit -o xml -f pretty -o std -c tests/behavior/behat.yml
i at least get every suite written, but in each suite only the last failure, as you said.
It is likely that only the junit formatter has this problem. If you try to extend or decorate this formatter, it might work.
I'm using junit to collect tests result and not all tests results are written.
It seems like only the last process (suite) is writing the results.
My behat.yml:
In this case i have errors in every suite, which is written to each xml file when i run without parallel. In parallel only errors of suite myMotions is written to xml.