BehatParallelExtension icon indicating copy to clipboard operation
BehatParallelExtension copied to clipboard

Parallel processes overwrite JUnit output file

Open Dr10s opened this issue 4 months ago • 1 comments

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!

Dr10s avatar Oct 13 '25 14:10 Dr10s

JUnit formatter is not part of the BehatParallelExtension. You should try to extend or decorate this formatter.

Daniel-Marynicz avatar Oct 13 '25 14:10 Daniel-Marynicz