1

For an integration test setup, we have written some custom scripts and code to run tests based on the results of from the different external system and changing able configurations on out internal system.

What We would like to do is report these test, from within our build environment, Hudson. I don’t particular want to write a custom Hudson plug-in with a custom report format, and was hoping to retro-fit a standard xml report format like JUnit and let Hudson do the fancy reporting.

Can anyone point me in the direction of the minimum xml report requirements for any of the standard unit testing report formats that Hudson accepts?

Currently the scripts are executed via ANT, and the code added as Ant Tasks, being that once the system has been started and all external parts are attached and checked, a list of tests that can be run and changed based on properties within ANT and the env/server it is on.

Ben
  • 1,086
  • 3
  • 15
  • 30
  • I think you already hinted at it.... use the JUnit XML output format. This might help [Stack Overflow: Junit XML Format Hudson Supports](http://stackoverflow.com/questions/4922867/junit-xml-format-specification-that-hudson-supports). – jwernerny Jan 10 '12 at 14:46

2 Answers2

0

You can output a report in the Standard Test Report format something like below

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<testsuite errors="0" failures="0" name="Suite of Tests" package="com.test.reporting" tests="2" time="125" timestamp="2012-04-24T03:03:38">
    <testcase name="Test2" time="0"/>
    <testcase name="Test1" time="0"/>
</testsuite>

requires some custom code... but pretty simple.

Ben
  • 1,086
  • 3
  • 15
  • 30
0

You can also try code.google.com/p/shell2junit as referenced in JUnit XML Format Specification that Hudson supports

Community
  • 1
  • 1
David I.
  • 4,747
  • 3
  • 26
  • 34