facile-it / paraunit

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

Output improvements #98

Open salvatorecordiano opened 7 years ago

salvatorecordiano commented 7 years ago

Is it possible to show the failed test methods immediately instead of wait the end of the whole test suite execution?

Jean85 commented 7 years ago

This is a great idea, and a good alternative to #58 when it's not applicable, like in a CI build: the build there can be very long, but seeing an F at the start and having to wait until the end to know what's wrong is frustrating.

I was thinking about doing something like:

paraunit run --print-failures-early

[...]

................................................................................
.....................E.....
ERRORS:
1) Class\Name\Of\Test::testMethod(): error message

................................................................................
................................................................................

I would use the same output style of the failures recap at the end, break the errors printing, and the recover from where it was left.