db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: HTML reports now available for any ant junit test run
Date Thu, 13 Mar 2008 14:23:20 GMT
Daniel John Debrunner wrote:
> I made a simple change to build.xml to separate out the junit HTML 
> report generation from junitreport which always ran junit-all.
> 
> The new target junit-html can be included as the last target in any 
> junit ant run to produce an HTML report of all the tests run in that ant 
> invocation.
> 
> E.g.
> 
> ant junit-clean junit-system-mini-codeline-jars junit-html

This needs a little more work, if a target fails before junit-html then 
junit-html is never executed and hence no report. E.g. due to these:

<fail if="tests.failed">Tests Failed!</fail>

Really need fail if "tests.failed" AND junit-html is not present
(another possibile check is "and not the last target"). No idea if this 
can be done in ant though. junit-html itself contains the fail test 
which would then cause the build to fail correctly after generating the 
report.

Dan.

Mime
View raw message