Junit 4.4 と Ant 1.7 を使用しています。テスト ケースがエラーで失敗した場合 (たとえば、メソッドが予期しない例外をスローしたため)、エラーの詳細はわかりません。
私のbuild.xmlは次のようになります:
<target name="test" depends="compile">
<junit printsummary="withOutAndErr" filtertrace="no" fork="yes" haltonfailure="yes" showoutput="yes">
<classpath refid="project.run.path"/>
<test name="a.b.c.test.TestThingee1"/>
<test name="a.b.c.test.NoSuchTest"/>
</junit>
</target>
「ant テスト」を実行すると、(たとえば) 2 回のテスト実行、0 回の失敗、1 回のエラーと表示されます。これは完全に合理的であり、エラーの原因を突き止めることができますが、「NoSuchTest のようなテストはありません」とは言いません。
ありがとう!
-ダン