title: Ant JUnit Test case failure report not reporting testcase name
body: <p>I am working on parsing the xml Junit reports generated with Ant Task. I see for <strong>pass</strong> test cases the report shows exact name of the testcase(method) executed, but not for <strong>failing</strong> test case.</p>
  
  <p>Can be verified below....</p>
  
  <pre><code>&lt;testcase classname="com.gui.LoginTest" name="blankFieldsTest" time="2.222" /&gt;
    &lt;testcase classname="com.gui.LoginTest" name="wrongUsernameOrPassword" time="2.233" /&gt;
    &lt;testcase classname="com.gui.LoginTest" name="successfulLoginTest" time="13.12" /&gt;
    &lt;testcase classname="junit.framework.TestSuite" name="com.gui.pool.ValidPoolTest" time="0.001"&gt;
      &lt;error message="Error communicating with the remote browser. It may have died.&amp;#xa;Build info: version: &amp;apos;2.33.0&amp;apos;, revision: &amp;apos;4e90c97&amp;apos;, time: &amp;apos;2013-05-22 15:33:32&amp;apos;&amp;#xa;System info: os.name: &amp;apos;Windows Server 2008 R2&amp;apos;, os.arch: &amp;apos;amd64&amp;apos;, os.version: &amp;apos;6.1&amp;apos;, java.version: &amp;apos;1.7.0_21&amp;apos;&amp;#xa;Driver info: driver.version: RemoteWebDriver" type="org.openqa.selenium.remote.UnreachableBrowserException"&gt;org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
  Build info: version: &amp;apos;2.33.0&amp;apos;, revision: &amp;apos;4e90c97&amp;apos;, time: &amp;apos;2013-05-22 15:33:32&amp;apos;
  System info: os.name: &amp;apos;Windows Server 2008 R2&amp;apos;, os.arch: &amp;apos;amd64&amp;apos;, os.version: &amp;apos;6.1&amp;apos;, java.version: &amp;apos;1.7.0_21&amp;apos;
  Driver info: driver.version: RemoteWebDriver
  &lt;/error&gt;
    &lt;/testcase&gt;
  </code></pre>
  
  <p>I want the name of failing testcase also to appear in the xml, what is the configuration I should use?</p>
  
  <p>Here is what my ant task looks like</p>
  
  <pre><code>&lt;target name="test.helper" description="executed the junit task on compiled code and creates .xml reports"&gt;
          &lt;mkdir dir="${unit.test.dir}" /&gt;
          &lt;junit dir="${unit.test.dir}" fork="yes" printsummary="on" haltonfailure="no"&gt;
              &lt;batchtest fork="yes" todir="${unit.test.dir}"&gt;
                  &lt;fileset dir="${test.classes.dir}"&gt;
                      &lt;include name="**/TestSuite.class" /&gt;
                  &lt;/fileset&gt;
              &lt;/batchtest&gt;
              &lt;formatter type="xml" /&gt;
              &lt;classpath&gt;
                  &lt;pathelement path="${test.classes.dir}" /&gt;
                  &lt;fileset id="distjars" dir="${dist.lib.dir}"&gt;
                      &lt;include name="**/*.jar" /&gt;
                      &lt;exclude name="**/*_test.jar" /&gt;
                  &lt;/fileset&gt;
                  &lt;fileset id="selenium.jars" dir="${local.selenium.dir}/"&gt;
                      &lt;include name="**/*.jar" /&gt;
                  &lt;/fileset&gt;
              &lt;/classpath&gt;
          &lt;/junit&gt;
      &lt;/target&gt;
  </code></pre>