title: Ant : Junit failure triggers a haltonfailure
body: <p>I have found that the following : </p>
  
  <pre><code>&lt;junit haltonfailure="no" haltonerror="no" &gt;
     &lt;!-- some tests guaranteed to call Assert.fail(); --&gt; 
  &lt;/junit&gt;
  </code></pre>
  
  <p>Will not prematurely halt (all tests will run). </p>
  
  <p>HOWEVER ...... The following </p>
  
  <pre><code>&lt;junit haltonfailure="no" haltonerror="yes" &gt;
  </code></pre>
  
  <p>Will fail after the FIRST failed test.  Note that in this case, I'm guaranteeing that the test is failing via Assert.fail();</p>
  
  <p><strong>This, I am assuming that either</strong> </p>
  
  <p>1) Ant considers an ERROR to be a subclass of a FAILURE. or </p>
  
  <p>2) There is a oddity in the way ant percieves failures - that is, failures are treated (erroneously) as errors when deciding to halt.</p>
  
  <p>My Question : Why would ant would halt on a test failure (even when explicitly configured with haltonfailure="no").  Any thoughts could be very enlightening ! Thanks. </p>
  
  <p><strong>UPDATE</strong> </p>
  
  <p>I now realize that this is clearly an RTFM question which is covered in the ant <a href="http://ant.apache.org/manual/Tasks/junit.html" rel="nofollow">http://ant.apache.org/manual/Tasks/junit.html</a> (see correct answer below).</p>