facile-it / paraunit

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

#207 - Adding log-junuit example for v1 #208

Open keljtanoski opened 1 year ago

keljtanoski commented 1 year ago

Hi @Jean85 , I am adding this MR to provide some idea how I have solved the log-junit in paraunit. This was one of the main features that i needed in the rewrite i mentioned to you via email. I did not had a chance to go over the 2.x version knowing you made a huge refactor but I will get to it in my free time.

The basic idea is to send the log-junit command to each of the processes i.e either chunks or tests and generate files based on the filename provided -> --log-unit=test.xml and the output will be stored in the junit dir then merged into one file and the directory will be deleted something similar to what you are doing with the chunks currently.

keljtanoski commented 1 year ago

Note: Will need to update the tests as well.