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| @configuration.with_suite_hooks do example_groups.map { |g| g.run(reporter) }.all? ? 0 : @configuration.failure_exit_code end end end