使用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>



版权所有 罗明
posted on 2006-02-16 14:13 罗明 阅读(373) 评论(0)  编辑  收藏 所属分类: JavaStudy

只有注册用户登录后才能发表评论。


网站导航: