Permalink
Browse files

display previous failures when sig INFO is caught

  • Loading branch information...
tenderlove committed Feb 7, 2012
1 parent 2f0a3aa commit 51133d88aa569f78afcb7176e54c5690273ed4b8
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/minitest/unit.rb
View
@@ -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

0 comments on commit 51133d8

Please sign in to comment.