[Anthill-pro] Harvesting Ant JUnit html

Wes Bramhall WesB at widen.com
Thu Apr 17 10:08:30 CDT 2008


I have a job that runs an Ant builder that executes unit tests. Ant has
a built in junitreport task that generates HTML from the test XML files.
How would I harvest that HTML during the build so it ends up in a safe
location (currently it gets blown away each build) that is servable
through the Anthill server?

 

For example:

 

A build kicks off and ends up running job 32. This runs the unit tests
and creates HTML and XML files in the junit-reports directory in the
working dir. I want to harvest the HTML and store it in a folder
associated with job 32 that can be served up by Anthill with a URL like
http://ci.blah.com:8080/artifacts/job32/junitreports/index.html as I
would like to include this link in the email sent out at job end.

 

I've tried artifact sets but don't fully understand how to use them, so
maybe that's the fix? I know there is a JUnit Builder but for numerous
results (2000 tests) the resulting HTML is much harder to browse than
Ant's.

 

Thanks,

-Wes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080417/f9d85f54/attachment.htm


More information about the Anthill-pro mailing list