summary refs log tree commit diff
diff options
context:
space:
mode:
authorGabriel Horner <gabriel.horner@gmail.com>2010-03-28 23:16:49 -0400
committerGabriel Horner <gabriel.horner@gmail.com>2010-03-28 23:16:49 -0400
commit732c9bc4c009d73c2763f5dc661f69e97be507a9 (patch)
treee886895d14a5e9d30d27125de686c4a577ab4fff
parent0aaf725af9c43ccc97597e6d4621bcc88b290367 (diff)
downloadbacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.tar.gz
bacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.tar.xz
bacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.zip
give TestUnitOutput the same timer that Test::Unit has
-rw-r--r--lib/bacon.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bacon.rb b/lib/bacon.rb
index ad4df44..6ba913b 100644
--- a/lib/bacon.rb
+++ b/lib/bacon.rb
@@ -23,6 +23,7 @@ module Bacon
 
   def self.summary_on_exit
     return  if Counter[:installed_summary] > 0
+    @timer = Time.now
     at_exit {
       handle_summary
       if $!
@@ -68,7 +69,7 @@ module Bacon
     end
 
     def handle_summary
-      puts
+      puts "", "Finished in #{Time.now - @timer} seconds."
       puts ErrorLog  if Backtraces
       puts "%d tests, %d assertions, %d failures, %d errors" %
         Counter.values_at(:specifications, :requirements, :failed, :errors)