Leo Simons wrote:
>
> I'd say we make sure all tests pass first. Has an ant
> target for jUnit been added yet?
Yes, it's in the Optional Package. There are two tasks:
<junit> and <junitreport>
junit runs the tests and generates xml reports or outputs results to
the screen.
<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement location="${build.tests}" />
<pathelement path="${java.class.path}" />
</classpath>
<formatter type="plain" />
<test name="my.test.TestCase" haltonfailure="no" outfile="result" >
<formatter type="xml" />
</test>
<batchtest fork="yes" todir="${reports.tests}">
<fileset dir="${src.tests}">
<include name="**/*Test*.java" />
<exclude name="**/AllTests.java" />
</fileset>
</batchtest>
</junit>
junitreport requires Xalan 1 or compatibility jar, and
creates an HTML browsable report of the test results.
<junitreport>
<fileset dir="./reports">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="./report/html"/>
</junitreport>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]