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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/invocations.rb

Instance Method Summary collapse

Instance Method Details

#call(options, err, out) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/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