BehatParallelExtension
BehatParallelExtension copied to clipboard
Parallel processes overwrite JUnit output file
Hi. When I run Behat in parallel like this:
vendor/bin/behat features -f junit -o var/log/behat --parallel=2
each parallel process writes to the same output file, so the last one overwrites previous results.
As a result, I get only one test case in the final JUnit report.
Expected behavior: Each parallel worker should write to a separate JUnit file (for example with an index suffix or in its own folder), or there should be a way to configure unique output paths per process.
Thanks!
JUnit formatter is not part of the BehatParallelExtension. You should try to extend or decorate this formatter.