You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/12/15 12:35:35 UTC

[Bug 55879] formatter doesn't log stdout messages unless Test Suite is completed

https://issues.apache.org/bugzilla/show_bug.cgi?id=55879

Michael Clarke <mc...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Michael Clarke <mc...@apache.org> ---
This is caused by the PlainJUnitResultFormatter not calling flush following
each print, although that in itself isn't a bad thing as it prevents blocking
on every action whilst any underlying output stream is flushed.

You can overcome this if you want by duplicating the PlainJUnitResultFormatter
and calling flush after each write or writeln, or by creating a wrapper that
intercepts the setOuput and setError calls and either flushes them on timer, or
also intercepts the various reporting calls and calling flush on the output
streams after calling the original (super) reporting methods.

-- 
You are receiving this mail because:
You are the assignee for the bug.