Class: RSpec::Core::Bisect::ShellRunner Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | rspec-core/lib/rspec/core/bisect/shell_runner.rb |
Overview
Provides an API to run the suite for a set of locations, using the given bisect server to capture the results.
Sets of specs are run by shelling out.
Class Method Summary
- .name Internal use only
- .new(server, shell_command) ⇒ ShellRunner constructor Internal use only
- .start(shell_command, _spec_runner) Internal use only
Instance Method Summary
- #original_results Internal use only
- #run(locations) Internal use only
-
#run_command(cmd)
private
Internal use only
:nocov:
- #run_locations(*capture_args) private Internal use only
Class Method Details
.name
[ GitHub ]# File 'rspec-core/lib/rspec/core/bisect/shell_runner.rb', line 19
def self.name :shell end
.start(shell_command, _spec_runner)
[ GitHub ]Instance Method Details
#original_results
[ GitHub ]# File 'rspec-core/lib/rspec/core/bisect/shell_runner.rb', line 32
def original_results @original_results ||= run_locations(@shell_command.original_locations) end
#run(locations)
[ GitHub ]# File 'rspec-core/lib/rspec/core/bisect/shell_runner.rb', line 28
def run(locations) run_locations(locations, original_results.failed_example_ids) end
#run_command(cmd) (private)
:nocov:
# File 'rspec-core/lib/rspec/core/bisect/shell_runner.rb', line 52
def run_command(cmd) Open3.capture2e(@shell_command.bisect_environment_hash, cmd).first end
#run_locations(*capture_args) (private)
[ GitHub ]# File 'rspec-core/lib/rspec/core/bisect/shell_runner.rb', line 38
def run_locations(*capture_args) @server.capture_run_results(*capture_args) do run_command @shell_command.command_for([], @server) end end