Generate JUnit style log files from within nant. A
failing task within a testcase only causes the build to
fail at the end of the testsuite.
Usage:
<include name="testsuite.build" />
<testsuite name="RRC message decode tests">
<foreach item="File" property="message_file">
<in>
<items>
<include name="${message.dir}\*.bin" />
</items>
</in>
<do>
<testcase name="Test decode of
${path::get-file-name(message_file)}">
<exec program="${executable}" >
<arg value="--channel-type=0" />
<arg value="${message_file}" />
</exec>
</testcase>
</do>
</foreach>
</testsuite>
creates a junit style log file named 'TEST-RRC message
decode tests.xml' with contents
<testsuite name="RRC message decode tests" time="0.078">
<testcase name="Test decode of channel_0.bin"
time="0.062" />
</testsuite>
Notes:
* A global 'OutputLogDir' property is used, but this
could be easily changed to be an attribute.
* The attachment is a nant script to add the 'test'
functionality, but including it into the nant core is
trivial.
Script to add 'testsuite' & 'testcase' functionality to nant.