title: XML format specification (DTD, XSD..) for Unit Test Reports
body: <p>A lot of tools produces and consumes the same XML File format for Unit Test report.</p>
  
  <p>Example (<a href="http://junitpdfreport.cvs.sourceforge.net/junitpdfreport/src/resources/examples/testresults/" rel="noreferrer">source</a>):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;testsuite errors="0" failures="0" hostname="hazelnut.osuosl.org" name="net.cars.engine.MoteurTest" tests="6" time="0.021" timestamp="2007-11-02T23:13:50"&gt;
    &lt;properties&gt;
      &lt;property name="java.vendor" value="IBM Corporation" /&gt;
      &lt;property name="os.name" value="Linux" /&gt;
      &lt;!-- more property tags--&gt;
    &lt;/properties&gt;
    &lt;testcase classname="net.cars.engine.MoteurTest" name="hasBougie" time="0.0010" /&gt;
    &lt;testcase classname="net.cars.engine.MoteurTest" name="hasCarburatueur" time="0.0010" /&gt;
    &lt;!-- more testcase tags--&gt;
    &lt;system-out&gt;&lt;![CDATA[]]&gt;&lt;/system-out&gt;
    &lt;system-err&gt;&lt;![CDATA[]]&gt;&lt;/system-err&gt;
  &lt;/testsuite&gt;
  </code></pre>
  
  <p>After a little bit research, I have found that the format was proposed by the apache foundation (by the ant project).</p>
  
  <p>Produced by:</p>
  
  <ul>
  <li>junit ant task</li>
  <li>antunit</li>
  <li>maven surefire</li>
  <li>testng</li>
  <li>...</li>
  </ul>
  
  <p>Consumed by: </p>
  
  <ul>
  <li>junitreport ant task</li>
  <li>maven surefire-reports</li>
  <li>CruiseControl</li>
  <li>Luntbuild</li>
  <li>Bamboo</li>
  <li>Hudson/Jenkins</li>
  <li>IntelliJ TeamCity</li>
  <li>AntHill</li>
  <li>Parabuild</li>
  <li>JUnit PDF Report </li>
  <li>...</li>
  </ul>
  
  <p>The only document I could find is this page on the ant wiki: 
  <a href="http://wiki.apache.org/ant/Proposals/EnhancedTestReports" rel="noreferrer">Proposals/EnhancedTestReports</a></p>
  
  <p>Is there any specification of this format (DTD, XSD) ?</p>
  
  <p>I want to write a such file from hand... (or maybe use a librairy if you know any)...</p>