Method: RSpec::Core::Runner.run
- Defined in:
- lib/rspec/core/runner.rb
permalink .run(args, err = $stderr, out = $stdout) ⇒ Fixnum
Run a suite of RSpec examples. Does not exit.
This is used internally by RSpec to run a suite, but is available for use by any other automation tool.
If you want to run this multiple times in the same process, and you
want files like spec_helper.rb
to be reloaded, be sure to load load
instead of require
.
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/rspec/core/runner.rb', line 64 def self.run(args, err=$stderr, out=$stdout) trap_interrupt = ConfigurationOptions.new(args) if .[:runner] .[:runner].call(, err, out) else new().run(err, out) end end |