Permalink
Browse files

Show three decimals places of time in Pretty reporter.

  • Loading branch information...
1 parent 4b60635 commit c6f7bb0d1a2e1e2d47b5ae71010040e4c12beee3 @trans trans committed Apr 15, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/turn/reporters/pretty_reporter.rb
@@ -117,14 +117,17 @@ def colorize_count(str, count, colorize_method)
str
end
+ # TODO: Could also provide % done with time info. But it's already taking up
+ # a lot of screen realestate. Maybe use --verbose flag to offer two forms.
+
# Outputs test case header for given event (error, fail & etc)
#
# Example:
# PASS test: Test decription. (0.15s 0:00:02:059)
def banner(event)
name = naturalized_name(@test)
delta = Time.now - @test_time # Test runtime
- io.puts "%18s %s (%s %0.2fs)" % [event, name, ticktock, delta]
+ io.puts "%18s (%s %0.3fs) %s" % [event, ticktock, delta, name]
end
# Cleanups and prints test payload

0 comments on commit c6f7bb0

Please sign in to comment.