[Anthill-pro] Harvesting Ant JUnit html

Steve Boone sbb at urbancode.com
Thu Apr 17 15:15:44 CDT 2008


Wes,

We would recommend the JUnit Publisher step. The publisher actually reads
JUnit's XML files and produces a report as well as inserts them into the
database so the tests will be associated with the build life. This makes the
results available on the build life's Tests tab. You just need to point the
step at the directory containing the XML output files.



On Thu, Apr 17, 2008 at 4:11 PM, Wes Bramhall <WesB at widen.com> wrote:

> 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
> 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 Publisher but for numerous
> results (2000 tests) the resulting HTML is much harder to browse than
> Ant's.
>
> Thanks,
> -Wes
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080417/13da94b9/attachment.htm


More information about the Anthill-pro mailing list