title: What is the best way to filter errors/failures in JUnit files?
body: <p>My division uses continuous integration but our product and process don't lend well to the model that bugs should be fixed immediately (long runtimes, shared resources, old VCS tools, etc). CI is still useful for detecting problems quickly and identifying the culprits though. I have a script which can read the JUnit XML file and determine which failures to filter and write a new filtered output file but I'd like to include information in the file which can be seen in CI tools which explains why it was filtered. Unfortunately, the testcase and testsuite elements seem to lack a  node. Is there a place in the format where I can place this information?</p>
  
  <pre><code>&lt;testsuites&gt;
    &lt;testsuite name="name"&gt;
      &lt;testcase name="name"&gt;
        &lt;failure&gt;some message&lt;/failure&gt;
      &lt;/testcase&gt;
    &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  </code></pre>
  
  <p>Into something like:</p>
  
  <pre><code>&lt;testsuites&gt;
    &lt;testsuite name="name"&gt;
      &lt;testcase name="name"&gt;
        &lt;failure&gt;some message
  Filtered: See bug #####&lt;/failure&gt;
      &lt;/testcase&gt;
    &lt;/testsuite&gt;
  &lt;/testsuites&gt;
  </code></pre>