You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Frot <fr...@lycos.at> on 2003/01/20 22:50:46 UTC

RE: JUNIT & Junitreport - not showing System.out in HTML Report

Hi Dominique,

Thanx for the patch, it works (and its the Head version). 
Also my thanks to Erik for getting this thing going.
I hope this changes makes it to the upcoming release ??

I know my tasks should by silent, but the class tested generates some random strings.
I could not think of a better way of testing random behaviour other than the manual kind,
printing it on screen at just check it yourself. (Suggestions for a automated way are gladly
taken).


Regards,  Fred

*********** REPLY SEPARATOR  ***********

On 20/01/2003 at 08:50 Dominique Devienne wrote:

>I modified junit-frames.xsl to add the links to stdout/stderr. JUnit tests
>shouldn't need to output anything (unfortunately ours are quite verbose for
>reasons I won't get into ;-), but if they do, the new stylesheet will
>generate the .txt files from the info in the XML, and the links to them in
>the HTML, but only if there's something to link to, i.e. some output. So if
>you have clean unit tests which are silent, you won't see a thing 
>
>This is in CVS only (HEAD and/or 1.5 branch, I'm not sure). --DD
>
>-----Original Message-----
>From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] 
>Sent: Sunday, January 19, 2003 9:26 AM
>To: Ant Users List
>Subject: Re: JUNIT & Junitreport - not showing System.out in HTML Report
>
>
>On Sunday, January 19, 2003, at 09:58  AM, Erik Hatcher wrote:
>> The stylesheet that generates the HTML report simply ignores 
>> <system-out> elements.  To have it added, you will have to tweak the 
>> XSL.  This can be done easily (if you know a little XSLT) by copying 
>> the existing XSL file, making the changes, and pointing to its parent 
>> directory using the 'styledir' attribute of the <report> subelement of 
>> <junitreport> 
>
>Actually, the junit-frames.xsl does have handling for system-out and 
>system-err - it appears it should write them to .txt files and provide 
>hyperlinks to them in the HTML view.  I've never seen these links 
>appear on reports I've generated though, so perhaps there is a bug in 
>the XSL (wrong element path perhaps?).  Anyone seen this work?
>
>	Erik
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>