diff options
author | Gabriel Horner <gabriel.horner@gmail.com> | 2010-03-28 23:16:49 -0400 |
---|---|---|
committer | Gabriel Horner <gabriel.horner@gmail.com> | 2010-03-28 23:16:49 -0400 |
commit | 732c9bc4c009d73c2763f5dc661f69e97be507a9 (patch) | |
tree | e886895d14a5e9d30d27125de686c4a577ab4fff | |
parent | 0aaf725af9c43ccc97597e6d4621bcc88b290367 (diff) | |
download | bacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.tar.gz bacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.tar.xz bacon-732c9bc4c009d73c2763f5dc661f69e97be507a9.zip |
give TestUnitOutput the same timer that Test::Unit has
-rw-r--r-- | lib/bacon.rb | 3 |
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) |