title: How do I get one junit report from TestNG for all my test cases?
body: <p>I have a TestNG xml file formatted like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" &gt;
  &lt;suite name="MySuite" parallel="tests" thread-count="5"&gt;
  &lt;parameter name="browser" value="firefox" /&gt;
  &lt;parameter name="remoteOrLocal" value="local" /&gt;
  &lt;parameter name="environment" value="####" /&gt;
  &lt;parameter name="remoteAddress" value="0.0.0.0" /&gt;
  &lt;test name="1" &gt;
      &lt;classes&gt;
          &lt;class name="tests.Test1"/&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  &lt;test name="2"&gt;
      &lt;classes&gt;
          &lt;class name="tests.Test2"/&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  &lt;test name="3"&gt;
      &lt;classes&gt;
          &lt;class name="tests.Test3"/&gt;
      &lt;/classes&gt;
  &lt;/test&gt;
  &lt;/suite
  </code></pre>
  
  <p>But I use a test case management tool that requires junit output which shouldn't be a problem since TestNG generates junit output automatically. </p>
  
  <p><strong>The problem is this:</strong>
  In the directory under test-output called junitreports, there is one junit report for each class in the following format:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!-- Generated by org.testng.reporters.JUnitReportReporter --&gt;
  &lt;testsuite hostname="fadavis-HP-EliteBook-8470p" name="tests.Test1" tests="3" failures="1" timestamp="15 May 2015 19:25:12 GMT" time="0.023" errors="1"&gt;
    &lt;testcase name="method1" time="0.012" classname="tests.Test1"/&gt;
    &lt;testcase name="method3" time="0.004" classname="tests.Test1"/&gt;
    &lt;testcase name="method2" time="0.007" classname="tests.Test1"&gt;
      &lt;error type="java.lang.AssertionError" message="null"&gt;
        &lt;![CDATA[java.lang.AssertionError: null
      at org.testng.Assert.fail(Assert.java:94)
      at org.testng.Assert.fail(Assert.java:101)
      at tests.Test1.method2(Test1.java:13)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
      at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
      at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  ]]&gt;
      &lt;/error&gt;
    &lt;/testcase&gt; &lt;!-- method2 --&gt;
  &lt;/testsuite&gt; &lt;!-- tests.Test1 --&gt;
  </code></pre>
  
  <p>where the suite name is the same as the classname.  How can I get just one Junit report file with the results from a suite of TestNG tests?</p>