title: Creating a test report using Ruby unit test
body: <p>I have a working testsuite which tests some RESTful API's.  Up until now the stdout results have been fine:</p>
  
  <pre><code>.......E..F..
  </code></pre>
  
  <p>However now I need something a bit more informative.</p>
  
  <p>The output should be:</p>
  
  <pre><code>TestName, startTime, endTime, Result
  </code></pre>
  
  <p>I'll probably write this to a file in csv or xml.  Now, I'm having no problems with the test name, start time and end time (multiple ways to do this) but I don't know how to write the result, the . or F or E to the file.  </p>
  
  <p>Is there any way I can extract the test result and do something with it within the test or test runner?</p>
  
  <p>Could someone point me in the right direction?</p>