title: Visualizing old JUnit XML files with Jenkins
body: <p>I know how to run tests via a Jenkins job and how to output custom XML results in JUnit specification which are then loaded/visualized by a post-build step to get this nice fancy trend graph.</p>
  
  <p>Now I have a lot of these simple testresults xmls, that are old. They are also produced by a different process, not a Jenkins job. I only want to use Jenkins to visualize them and get the graphical representation. 
  From here I know that Jenkins is hardcoded to reject xml files that are older than 1000ms: <a href="http://comments.gmane.org/gmane.comp.java.hudson.user/30138" rel="nofollow">http://comments.gmane.org/gmane.comp.java.hudson.user/30138</a></p>
  
  <p>It will then tell me this: "Test reports were found but none of them are new. Did tests run?"</p>
  
  <p>However, is there no way to do it? Never thought this would be a problem. </p>
  
  <p>Cheers</p>
  
  <p>EDIT: Cool idea, thank you. I am on windows but did a 'touch' equivalent like so:     </p>
  
  <pre><code>import os
  
  for f in files:
      # 'touch' equivalent like in unix
      temp = open(f, "w")
      temp.write("")
      temp.close()
  </code></pre>
  
  <p>Jenkins shows me the graph now, however instead of interpreting the XMLs content, it just tells me that I have 350 failures (since I have 350 test result log files) and this error message for each failure: </p>
  
  <p>"Stacktrace</p>
  
  <p>Test report file C:\Documents and Settings\myUsername.jenkins\jobs\testjob\test-reports\TEST-TestScript-20130528125706.xml was length 0"</p>
  
  <p>What does that have to mean ...</p>