<p>I'm using Junit 4.4 and Ant 1.7.  If a test case fails with an error (for example because a method threw an unexpected exception) I don't get any details about what the error was.</p>

<p>My build.xml looks like this:</p>

<pre><code>&lt;target name="test" depends="compile"&gt;
&lt;junit printsummary="withOutAndErr" filtertrace="no" fork="yes" haltonfailure="yes" showoutput="yes"&gt;
  &lt;classpath refid="project.run.path"/&gt;
  &lt;test name="a.b.c.test.TestThingee1"/&gt;
  &lt;test name="a.b.c.test.NoSuchTest"/&gt;
&lt;/junit&gt;
&lt;/target&gt;
</code></pre>

<p>When I run "ant test" it says (for example) 2 Test runs, 0 failures, 1 error.  It doesn't say "There is no such test as NoSuchTest" even though this is completely reasonable and would let me figure out the cause of the error.</p>

<p>Thanks!</p>

<p>-Dan</p>

Figured it out :)
I needed to add a "formatter" inside the junit block.
```
```
<formatter type="plain" usefile="false" />
```
```
What a PITA.
-Dan