0
我用螞蟻JUnit來爲我的單元測試報告,因此可以說,我有一個單元測試,稱爲userServiceTest
所以在my build.xml
文件我把以下內容:如何自動生成新的單元測試螞蟻報告
<target name="UserServiceTest">
<mkdir dir="${junit.output.dir}" />
<junit fork="yes" printsummary="withOutAndErr">
<formatter type="xml" />
<test name="webapp.service.UserServiceTest" todir="${junit.output.dir}" />
<jvmarg line="-ea" />
<classpath refid="Web Application.classpath" />
</junit>
</target>
現在我們可以說我已經添加了一個名爲productServiceTest
的新單元測試類,是否可以將這個新的單元測試自動包含在我的報告中?
預先感謝您。