Re: [junitlauncher] show standard output/error while running tests

Jaikiran Pai <[email protected]> Tue, 7 Apr 2026 18:21:15 +0530
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <[email protected]>
Hello Luna,

On 07/04/26 2:49 pm, Luna Schwalbe wrote:
> Hey,
>
> I've been trying to get the `junitlauncher` taskdef to print the 
> output of tests while they're being run.
>
> The builtin listeners (legacy-{plain,brief,xml}) only write their 
> output after the tests have concluded, so as a next step I tried 
> implementing my own `TestResultFormatter`, but realized that the 
> `sysOutAvailable` and `sysErrAvailable` methods are only called at the 
> end after tests, and not live during execution.

Those 2 methods will be called regularly as and when the data is 
available (it's batched by 1024 bytes). Have you tried generating enough 
content to see if it makes a difference in what you observe? If it still 
doesn't work, then it would be good to share a reproducer. Which version 
of Ant are you on?

-Jaikiran