Note that there are some explanatory texts on larger screens.

plurals
  1. POJUnit/Ant XML file format for stdout
    primarykey
    data
    text
    <p>I'm writing my own test program and I want to be able to re-use tools like Hudson for displaying the results of the test cases. I've so far gotten the results of the text file all into the same XML file and with success, failure, and errors.</p> <p>Now I want to add the output of the test into the file. I have it set up so I can get the output of a test for each test individually, but I can't seem to figure out how to get it into the XML file in a way Hudson will recognize.</p> <p>I want to do something like this...</p> <pre><code>&lt;testsuite&gt; &lt;testcase&gt; &lt;success classname="..."&gt; &lt;stdout&gt; This is standard output &lt;/stdout&gt; &lt;/success&gt; &lt;/testcase&gt; &lt;/testsuite&gt; </code></pre> <p>But this doesn't get recognized. I see in the Ant source code that it's defined as "system-out", but I also see that it seems it wants the file in this format.</p> <pre><code>&lt;testsuite&gt; &lt;testcase classname="..." /&gt; &lt;system-out&gt; This is standard output &lt;/system-out&gt; &lt;/testsuite&gt; </code></pre> <p>Is there anyway to make this file so that I can have a specific stdout for each test case? Or do I have to make a new testsuite for every test case?</p> <p>Edit: I seem to be able to get this format to work, but I'm still disappointed that I can't print the output during a success. I'd like it it while browsing tests, someone could see the output of that test.</p> <pre><code>&lt;testsuite&gt; &lt;testcase name="..."&gt; &lt;failure message="shows up as error message"&gt; standard out (shows up as stacktrace) &lt;/failure&gt; &lt;/testcase&gt; &lt;/testsuite&gt; </code></pre> <p>Is there anywhere that shows what format Hudson accepts? I feel bad commiting bad revisions to source control just to get it to run on the automated build server.</p> <p>I also can't seem to find where inside of Hudson the code for this functionality is.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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