From: Matt Armstrong Date: 2003-02-12T15:21:14+09:00 Subject: Re: [ANN] Test::Unit 0.1.8 writes: > If you don't know what Test::Unit is, I've included an explanation > further down. For everyone else, here's some highlights from the > ChangeLog (you can read the whole thing at > http://testunit.talbott.ws/ChangeLog): > > * Did a little performance tuning. This is great! In my case, Test::Unit is now only a tiny bit slower than RubyUnit (still using the RubyUnit compatibility layer). It used to I have two suggested patches to the console ui. The "Finished in seconds" includes to much precision in the seconds (nobody cares if it finished in 10.3234323 rather than 10.3234322 seconds), and the console runner never flushes io when it prints out the progress dots so they don't function as progress indicators. --- lib/test/unit/ui/console/testrunner.rb Tue Feb 11 21:22:33 2003 +++ /home/matt/pkg/stow/ruby-cvs/lib/ruby/1.8/test/unit/ui/console/testrunner.rbTue Feb 11 23:14:10 2003 @@ -90,7 +90,8 @@ def finished(elapsed_time) nl - output("Finished in #{elapsed_time} seconds.") + output("Finished in %.2f seconds." % + [ elapsed_time ]) @faults.each_with_index do |fault, index| nl output("%3d) %s" % [index + 1, fault.long_display]) @@ -118,7 +119,10 @@ end def output_single(something, level=NORMAL) - @io.write(something) if (output?(level)) + if (output?(level)) + @io.write(something) + @io.flush + end end def output?(level) -- matt