mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/minitest/unit.rb (Minitest::Unit#_run_suite): split test
name and its time. Thiw allows to know test's name when you are running tests and meet a test which spends long time at realtime. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bd0a9d2fb6
commit
00aab58537
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Dec 14 11:27:07 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/minitest/unit.rb (Minitest::Unit#_run_suite): split test
|
||||
name and its time. Thiw allows to know test's name when you are
|
||||
running tests and meet a test which spends long time at realtime.
|
||||
|
||||
Tue Dec 14 11:25:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* configure.in: Add -Werror=declaration-after-statement to default
|
||||
|
|
|
@ -656,11 +656,12 @@ module MiniTest
|
|||
inst = suite.new method
|
||||
inst._assertions = 0
|
||||
|
||||
print "#{suite}##{method} = " % time if @verbose
|
||||
start_time = Time.now
|
||||
result = inst.run self
|
||||
time = Time.now - start_time
|
||||
|
||||
print "#{suite}##{method} = %.2f s = " % time if @verbose
|
||||
print "%.2f s = " % time if @verbose
|
||||
print result
|
||||
puts if @verbose
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue