[Anthill-pro] Harvesting Ant JUnit html

Ryan Smith rws at urbancode.com
Thu Apr 17 13:26:40 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.


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 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

-- 
===========================================================
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
===========================================================


More information about the Anthill-pro mailing list