There are two distinct way in which a report may be utilized by a Runner: per-call or per-file. The method pass, fail and error are generic, and will be used in either case. A per-call runner will use all the methods of a Reporter, while a per-file runner will use start_case per file, and will not use the start_test and finish_test methods, since those are beyond it’s grainularity.
Invoked when a test raises an exception.
# File lib/turn/reporter.rb, line 51 def error(exception, message=nil) end
Invoked when a test raises an assertion.
# File lib/turn/reporter.rb, line 47 def fail(assertion, message=nil) end
Invoked after all tests in a testcase have ben run.
# File lib/turn/reporter.rb, line 63 def finish_case(test_case) end
After all tests are run, this is the last observable action.
# File lib/turn/reporter.rb, line 67 def finish_suite(test_suite) end
Invoked after a test has been run.
# File lib/turn/reporter.rb, line 59 def finish_test(test) end
Invoked when a test passes.
# File lib/turn/reporter.rb, line 43 def pass(message=nil) end
Invoked when a test is skipped.
# File lib/turn/reporter.rb, line 55 def skip(exception, message=nil) end
Invoked before a testcase is run.
# File lib/turn/reporter.rb, line 35 def start_case(test_case) end
Generated with the Darkfish Rdoc Generator 2.