ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: How to filter out all exceptions from the JUnit task's test failures
Date Wed, 02 Aug 2006 19:32:25 GMT
I know it is a hack, not a good design, etc, etc, but....

Couldn't the logger put some placeholder in for those attributes and
after the run is complete, go back and modify the log to place the
actual values overtop of the placeholders?

Ben

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Wednesday, August 02, 2006 2:41 PM
To: Ant Users List
Subject: Re: How to filter out all exceptions from the JUnit task's test
failures

Burgess, Benjamin wrote:
> Not sure if it will help at all, but here is an Ant XML Logger which
> writes to the log as it goes along, rather than waiting for the build
to
> finish before writing the whole log to the file.
> 
> It won't help with the JUnit logger that is writing the JUnit log
files,
> but a similar approach could be taken with the test runner.
> 
>
http://confluence.public.thoughtworks.org/display/CC/AntDirectXmlLogger
> 

yes, that is what I do with my testrunner.

the problem with the ant one is that it sticks the test stats up as 
attributes on the root node of the XML file. Which it can only do if it 
knows the results, hence it has to wait for the end of the run.

the only way to do streaming test logging is to change the XML format, 
and <junitreport>. Or, by outputting XHTML, you get to bypass most of 
<junitreport>, except for the summary data creation

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



**************************************************************
This message, including any attachments, contains confidential information intended for a
specific individual and purpose, and is protected by law.  If you are not the intended recipient,
please contact sender immediately by reply e-mail and destroy all copies.  You are hereby
notified that any disclosure, copying, or distribution of this message, or the taking of any
action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message