ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55879] formatter doesn't log stdout messages unless Test Suite is completed
Date Sun, 15 Dec 2013 11:35:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=55879

Michael Clarke <mclarke@apache.org> changed:

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

--- Comment #1 from Michael Clarke <mclarke@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.

Mime
View raw message