Permalink
Browse files

+ Document that record can be sent twice if teardown fails or errors …

…(randycoulman)

[git-p4: depot-paths = "//src/minitest/dev/": change = 8138]
  • Loading branch information...
1 parent 9544d15 commit 7176ee3bf004ae7240ed24952f6abaa8edcd2868 @zenspider zenspider committed Jan 23, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/minitest/unit.rb
@@ -928,7 +928,7 @@ def _run_suite suite, type
end
##
- # Record the result of a single run. Makes it very easy to gather
+ # Record the result of a single test. Makes it very easy to gather
# information. Eg:
#
# class StatisticsRecorder < MiniTest::Unit
@@ -938,6 +938,11 @@ def _run_suite suite, type
# end
#
# MiniTest::Unit.runner = StatisticsRecorder.new
+ #
+ # NOTE: record might be sent more than once per test. It will be
+ # sent once with the results from the test itself. If there is a
+ # failure or error in teardown, it will be sent again with the
+ # error or failure.
def record suite, method, assertions, time, error
end

0 comments on commit 7176ee3

Please sign in to comment.