1

我有一个测试套件,它在套件执行结束时重新运行所有失败的测试。但是即使测试在第二次运行中通过,junit report 也会显示第一次运行的输出,即。它表明测试失败。

以下是 build.xml 的摘录:

        <junitreport tofile="./report/html/result.xml">
            <fileset dir="./report">
                <include name="result.xml"/>
            </fileset>
            <report format="noframes" styledir="./etc_time" todir="./report/html/">
            </report>
        </junitreport>
        <copy file="report/html/junit-noframes.html" tofile="report/html/index.html" />
        <fail message="Tests failed" if="test.failed"/>

有人可以指出一些关于如何做到这一点的教程吗?

谢谢!

4

0 回答 0