ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: JunitReport
Date Sat, 08 Jun 2002 00:08:24 GMT
Yes, you can customize the report easily (if you know XSL) from
<junitreport>.  Simply use the styledir attribute on the <report> element
and provide your own XSL files (see the Ant docs for mandatory file names
that you must use).

As for getting the date/time into them - the best method is probably this:
you have access to Ant properties so you could, prior to running <junit>,
set a property with <tstamp> with the format you want and then output it in
the HTML generated.

As for source code, all Jakarta source code is available via CVS. Here's a
link right to the .junit package that contains all the related code for
<junit> and <junitreport>:

http://cvs.apache.org/viewcvs/jakarta-ant/src/main/org/apache/tools/ant/task
defs/optional/junit/

You could even implement your own JUnitResultFormatter and hook it directly
into <junit>/<format> (see docs for details).

    Erik


----- Original Message -----
From: "John Lindwall" <JLindwall@Xifin.com>
To: "'Ant Users List'" <ant-user@jakarta.apache.org>
Sent: Friday, June 07, 2002 7:47 PM
Subject: JunitReport


> Ant 1.4.1
>
> Using JUnitReport can I customize the output at all?  I want the date/time
of the test execution to appear on the main page.
>
> BTW Where is the source code to this task to be found? Maybe that is the
solution?
>


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


Mime
View raw message