Method: Protest::Runner#run_test_case

Defined in:
lib/protest/runner.rb

#run_test_case(test_case) ⇒ Object

Run a test case, along with any child test cases. This will fire the enter event before running the test case and the exit event afterward.



20
21
22
23
24
25
# File 'lib/protest/runner.rb', line 20

def run_test_case(test_case)
  @report.on_enter(test_case) if @report.respond_to?(:on_enter)
  sub_test_cases = Protest.send(:available_test_cases).select {|tc| tc.superclass == test_case }
  test_case.run(self, sub_test_cases)
  @report.on_exit(test_case) if @report.respond_to?(:on_exit)
end