class RSpec::Core::CommandLine

def run(err, out)

Parameters:
  • out (IO) --
  • err (IO) --
def run(err, out)
  @configuration.error_stream = err
  @configuration.output_stream ||= out
  @options.configure(@configuration)
  @configuration.load_spec_files
  @world.announce_filters
  @configuration.reporter.report(@world.example_count, @configuration.randomize? ? @configuration.seed : nil) do |reporter|
    begin
      @configuration.run_hook(:before, :suite)
      @world.example_groups.ordered.map {|g| g.run(reporter)}.all? ? 0 : @configuration.failure_exit_code
    ensure
      @configuration.run_hook(:after, :suite)
    end
  end
end