Class: HastCI::Adapters::RSpec::Runner
- Inherits:
-
Object
- Object
- HastCI::Adapters::RSpec::Runner
- Defined in:
- lib/hastci/adapters/rspec/runner.rb
Instance Method Summary collapse
-
#initialize(argv:, session:, err:, out:, clock: DEFAULT_CLOCK, configuration: ::RSpec.configuration, world: ::RSpec.world) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(argv:, session:, err:, out:, clock: DEFAULT_CLOCK, configuration: ::RSpec.configuration, world: ::RSpec.world) ⇒ Runner
Returns a new instance of Runner.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/hastci/adapters/rspec/runner.rb', line 13 def initialize( argv:, session:, err:, out:, clock: DEFAULT_CLOCK, configuration: ::RSpec.configuration, world: ::RSpec.world ) @session = session @err = err @out = out @clock = clock @options = ::RSpec::Core::ConfigurationOptions.new(argv) add_default_path_if_needed(@options, configuration) @configuration = configuration @world = world end |
Instance Method Details
#run ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/hastci/adapters/rspec/runner.rb', line 33 def run ::RSpec::Core::Runner.disable_autorun! setup return @configuration.reporter.exit_early(exit_code) if @world.wants_to_quit run_specs(@world.ordered_example_groups).tap do persist_example_statuses end end |