[Anthill-pro] Harvesting Ant JUnit html
Eric Minick
etm at urbancode.com
Thu Apr 17 13:33:11 CDT 2008
To get the Ant HTML output though you would use the generic Ant
publisher. Use the relative directory containing the report as the
base directory, and for the include pattern take everything: **/*
-- Eric
On Apr 17, 2008, at 2:26 PM, Ryan Smith <rws at urbancode.com> wrote:
> 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.
>
>
> Ryan Smith
>
> Wes Bramhall 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 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 hard
>> er 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
>
> --
> ===========================================================
> Ryan Smith. 2044 Euclid Ave., Suite 600
> Developer Cleveland, Ohio 44115
> Urbancode, Inc.
> email: rws at urbancode.com
> web: www.urbancode.com phone: 216-858-9000
> web: www.anthillpro.com fax: 216-858-9602
> ===========================================================
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
More information about the Anthill-pro
mailing list