使用Ant中的兩個Tasks來完成自動運行Nightly Test
<junit printsummary="yes" haltonfailure="yes">
<test name="org.redsoft.forum.AllTests” haltonfailure="no" outfile="result" >
<formatter type="xml" />
</test>
</junit>
產生一個XML是結果報告
再利用JunitReport來產生一個可供瀏覽的結果文件。
<junitreport todir="./reports">
<fileset dir="./reports">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="./report/html"/>
</junitreport>
版權所有 羅明