Skip to content

Commit

Permalink
+ Display failures/errors on SIGINFO. (tenderlove)
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 7022]
  • Loading branch information
zenspider committed Feb 8, 2012
1 parent 2f0a3aa commit 55c90dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/minitest/unit.rb
Expand Up @@ -1027,8 +1027,12 @@ class TestCase

def run runner
trap "INFO" do
runner.report.each_with_index do |msg, i|
warn "\n%3d) %s" % [i + 1, msg]
end
warn ''
time = runner.start_time ? Time.now - runner.start_time : 0
warn "%s#%s %.2fs" % [self.class, self.__name__, time]
warn "Current Test: %s#%s %.2fs" % [self.class, self.__name__, time]
runner.status $stderr
end if SUPPORTS_INFO_SIGNAL

Expand Down

0 comments on commit 55c90dc

Please sign in to comment.