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