Method: RSpec::Core::Runner#run

Defined in:
lib/rspec/core/runner.rb

#run(err, out) ⇒ void

Configures and runs a spec suite.

Parameters:

  • err (IO)

    error stream

  • out (IO)

    output stream



85
86
87
88
89
90
91
92
# File 'lib/rspec/core/runner.rb', line 85

def run(err, out)
  setup(err, out)
  return @configuration.reporter.exit_early(exit_code) if RSpec.world.wants_to_quit

  run_specs(@world.ordered_example_groups).tap do
    persist_example_statuses
  end
end