title: Jenkins Not Outputting Junit Report Info From File
body: <h2>Problem</h2>
  <p>A junit-formatted report is not being picked up by Jenkins, causing the reports not to be listed in the project's status screen.</p>
  <h2>Details</h2>
  <p>The junit-formatted report data is generated by a testing framework called Karma-runner (formerly Testacular).  The file being ignored is created in <code>/target/surefire-reports</code> -- the same location as where surefire-generated reports are created.  The report data looks practically the same as that generated by the maven surefire plugin except that its parent element is <code>&lt;testsuites&gt;</code> instead of <code>&lt;testsuite&gt;</code> -- <code>&lt;testsuite&gt;</code> is what the surefire generated reports have as the parent element of a report file.  Here's a snippet from the karma-generated junit-formatted report, named <code>TEST-karma.resultsTest.xml</code>:</p>
  <p><em><strong>Junit-formatted Karma-generated report file, <code>TEST-karma.resultsTest.xml</code></strong></em></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;testsuites&gt;
    &lt;testsuite name=&quot;PhantomJS 1.9 (Mac)&quot; package=&quot;karma.tests&quot; timestamp=&quot;2013-04-10T13:32:26&quot; id=&quot;0&quot; hostname=&quot;jgmbp.local&quot; tests=&quot;16&quot; errors=&quot;0&quot; failures=&quot;0&quot; time=&quot;0.069&quot;&gt;
      &lt;properties&gt;
        &lt;property name=&quot;browser.fullName&quot; value=&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.0 Safari/534.34&quot;/&gt;
      &lt;/properties&gt;
      &lt;testcase name=&quot;successfully cancels a new member&quot; time=&quot;0.006&quot; classname=&quot;karma.tests PhantomJS 1.9 (Mac).Household Controller&quot;/&gt;
      &lt;testcase name=&quot;should parse an existing re-eval create date, setting the data in scope&quot; time=&quot;0.003&quot; classname=&quot;karma.tests PhantomJS 1.9 (Mac).Re-Eval Controller&quot;/&gt;
      &lt;system-out&gt;&lt;![CDATA[
  ]]&gt;&lt;/system-out&gt;
      &lt;system-err/&gt;
    &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  </code></pre>
  <p>The Karma tests are run during the test phase of my maven build.  I've tried creating projects that only produce this one junit-report file as well as running the build so that all junit tests and karma tests generate report files. Jenkins will always pick up the surefire tests, but never the karma tests.</p>
  <p>Thanks for any input!</p>