lib/protest/runner.rb
def run(*test_cases)
      fire_event :start
      test_cases.each do |test_case|
        fire_event :enter, test_case
        test_case.run(self)
        fire_event :exit, test_case
      end
    rescue Interrupt
      $stderr.puts "Interrupted!"
    ensure
      fire_event :end
    end
# Run a set of test cases, provided as arguments. This will fire relevant
# events on the runner's report, at the +start+ and +end+ of the test run,
# and before and after each test case (+enter+ and +exit+.)
Run a set of test cases, provided as arguments.
Run a set of test cases provided as arguments .
def run(*test_cases)
      fire_event :start
      test_cases.each do |test_case|
        fire_event :enter, test_case
        test_case.run(self)
        fire_event :exit, test_case
      end
    rescue Interrupt
      $stderr.puts "Interrupted!"
    ensure
      fire_event :end
    end
def run ( * test_cases ) fire_event :start test_cases . each do | test_case | fire_event :enter , test_case test_case . run ( self ) fire_event :exit , test_case end rescue Interrupt $stderr . puts "Interrupted!" ensure fire_event :end end
Run a set of test cases, provided as arguments.
Run a set of test cases provided as arguments .
test_cases