未输出Ant JUnit结果
我正在运行一个运行junit测试的Ant任务。我希望将测试结果输出到XML。我有:未输出Ant JUnit结果,ant,junit,Ant,Junit,我正在运行一个运行junit测试的Ant任务。我希望将测试结果输出到XML。我有: <target name="test" depends="clean,compile"> <junit showoutput="yes" fork="true"> <classpath refid="test.classpath" /> <formatter type="plain" usefile="false" />
<target name="test" depends="clean,compile">
<junit showoutput="yes" fork="true">
<classpath refid="test.classpath" />
<formatter type="plain" usefile="false" />
<batchtest todir="${test.results.dir}">
<fileset dir="${tests.dir}">
<include name="**/*TestSuite.java"/>
</fileset>
</batchtest>
</junit>
</target>
但没有输出任何内容。我做错了什么?您必须将格式化程序的类型设置为
xml
<formatter type="xml" usefile="false" />
<formatter type="xml" />