title: Generating JUnit reports from the command line
body: <p>I have a test setup for a cloud system that uses a mixture of python for process level control and junit for internal state inspection.  Essentially, I bring up several VMs to server as the cloud and then a junit VM which is a member of the cloud but drives tests and checks internal state.  Our existing cloud management stuff is driven by python and I would like to maintain this.</p>
  
  <p>I have a working setup that will run the JUnit command line via</p>
  
  <pre><code>java -ea -cp &lt;classpath&gt; org.junit.runner.JUnitCore &lt;tests&gt;
  </code></pre>
  
  <p>but this does not produce an report file.  I know that ant is capable of producing an xml report, but I do not want to involve ant in this process (I have enough moving parts already).  </p>
  
  <p>Is there a way to launch junit from the command line such that it produces a report?</p>
  
  <p>Ideally, I would  have the junit tests produce xml reports, the python tests produce xml reports, and then merge them together for consumption by our CI system.</p>
  
  <p><strong>Update:</strong> The command line execution must support Windows, Linux, and Mac.  We are not allowed to ship an external ant, although packaging an internal ant <em>might</em> be an option.</p>