Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to get hudson to parse JUnit test output XML
    text
    copied!<p><strong>EDIT</strong>: This issue has been fixed by google in gtest 1.4.0; <a href="http://code.google.com/p/googletest/issues/detail?id=114" rel="nofollow noreferrer">see the original bug report</a> for more information.</p> <p>I've recently switched to gtest for my C++ testing framework, and one great feature of it which I am presently unable to use is the ability to generate JUnit-style XML test reports, which could then be read in by our hudson build server.</p> <p>The XML output generated by the gtest test suite all looks legit:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;testsuite tests="370" failures="0" disabled="0" errors="0" time="45.61" name="AllTests"&gt; &lt;testsuite name="application" tests="7" failures="0" disabled="0" errors="0" time="8.953"&gt; &lt;testcase name="zero_tasks_on_bootup" status="run" time="0" classname="application" /&gt; ...etc. &lt;/testsuite&gt; &lt;/testsuite&gt; </code></pre> <p>I've also tried adding a JUnitReport task to my ant build script, which works fine, and generates XML like so:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;testsuite tests="370" failures="0" disabled="0" errors="0" time="45.61" name="AllTests"&gt; &lt;testsuite name="application" tests="7" failures="0" disabled="0" errors="0" time="8.953"&gt; &lt;testcase name="zero_tasks_on_bootup" status="run" time="0" classname="application" /&gt; ...etc. &lt;/testsuite&gt; &lt;/testsuite&gt; </code></pre> <p>The problem is, whenever I tell ant to publish the JUnit test results, and then point it to either the raw test result XML, or the compiled result generated in the ant JUnitReport task, hudson always complains about finding no test results there.</p> <p>I'm not a java guy, so I can't tell what's going on here, and I can't find an example of how the JUnit XML ought to look like. Can someone help to point me in the right direction?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload