I have an issue when using the Ant junit task to launch my non-regression tests: the console output is only dumped when the test end. It causes some OOM when there are too many logs with respect to the process Xmx and means that if the process dies (or is killed by a watchdog) before its end the logs are lost.

Avoid using showoutput="true" and formatters. It is problematic, because it means that test stdout & stderr appears twice in the Output Window (in runtime, because showoutput flag, and after execution, because formatters).