polleu wrote
> I had the same problem.

Just this second, I was going to post back. I included this

require 'stringio'

(as someone did mention), and the code ran.

code example:

<snip>
require 'test/unit'
require 'test/unit/ui/reporter'
require 'test/unit/ui/console/testrunner'
require 'stringio'

require 'tc_1'
require 'tc_2'

 class TS_MyTests
  suite = Test::Unit::TestSuite.new

   suite << TC_1.suite
   suite << TC_2.suite

   require 'fileutils'
   FileUtils.mkdir_p 'build/report'

   Test::Unit::UI::Reporter.run(suite, '.\build\report')
 end
<snip>

I certainly like the style of the HTML reports. You can log to xml as well,
so if I have some time, I'll write some XSLT so we can have a 'fuller'
report.

Aidy




---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. 
If you are not the intended recipient, please telephone or email the sender and 
delete this message and any attachment from your system.  
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to