Method: Beaker::CLI#run_suite

Defined in:
lib/beaker/cli.rb

#run_suite(suite_name, failure_strategy = nil) ⇒ Object

Run the provided test suite

Parameters:

  • suite_name (Symbol)

    The test suite to execute

  • failure_strategy (String) (defaults to: nil)

    How to proceed after a test failure, ‘fast’ = stop running tests immediately, ‘slow’ = continue to execute tests.



177
178
179
180
181
182
183
184
185
# File 'lib/beaker/cli.rb', line 177

def run_suite(suite_name, failure_strategy = nil)
  if (@options[suite_name].empty?)
    @logger.notify("No tests to run for suite '#{suite_name}'")
    return
  end
  Beaker::TestSuite.new(
    suite_name, @hosts, @options, @timestamp, failure_strategy
  ).run_and_raise_on_failure
end