class RSpec::Core::Runner
def run_specs(example_groups)
-
(Fixnum)
- exit status code. 0 if all specs passed,
Parameters:
-
example_groups
(Array
) -- groups to run
def run_specs(example_groups) @configuration.reporter.report(@world.example_count(example_groups)) do |reporter| begin hook_context = SuiteHookContext.new @configuration.hooks.run(:before, :suite, hook_context) example_groups.map { |g| g.run(reporter) }.all? ? 0 : @configuration.failure_exit_code ensure @configuration.hooks.run(:after, :suite, hook_context) end end end