123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Core::Invocations::Bisect Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-core/lib/rspec/core/invocations.rb

Instance Method Summary

Instance Method Details

#bisect_formatter_klass_for(argument) (private)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/invocations.rb', line 45

def bisect_formatter_klass_for(argument)
  return Formatters::BisectDebugFormatter if argument == "verbose"
  Formatters::BisectProgressFormatter
end

#call(options, err, out)

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/invocations.rb', line 29

def call(options, err, out)
  RSpec::Support.require_rspec_core "bisect/coordinator"
  runner = Runner.new(options).tap { |r| r.configure(err, out) }
  formatter = bisect_formatter_klass_for(options.options[:bisect]).new(
    out, runner.configuration.bisect_runner
  )

  success = RSpec::Core::Bisect::Coordinator.bisect_with(
    runner, options.args, formatter
  )

  runner.exit_code(success)
end