我有很多的测试,在下面的JUnit任务失败。Junit的Ant任务,输出堆栈跟踪
<target name="test-main" depends="build.modules" description="Main Integration/Unit tests">
<junit fork="yes"
description="Main Integration/Unit Tests"
showoutput="true"
printsummary="true"
outputtoformatters="true">
<classpath refid="test-main.runtime.classpath"/>
<batchtest filtertrace="false" todir="${basedir}">
<fileset dir="${basedir}" includes="**/*Test.class" excludes="**/*MapSimulationTest.class"/>
</batchtest>
</junit>
</target>
如何告诉Junit输出每个测试的错误,以便我可以查看堆栈跟踪并调试问题。
至少有蚂蚁1.9.0,您还可以添加格式为junit任务的孩子。如果您有多个批处理任务,这将会很有帮助。 – 2013-04-16 14:12:19