Class RSpec::Core::Runner
In: lib/rspec/core/runner.rb
Parent: Object

Methods

Constants

AT_EXIT_HOOK_BACKTRACE_LINE = "#{__FILE__}:#{__LINE__ - 2}:in `autorun'"

Public Class methods

Register an at_exit hook that runs the suite.

Run a suite of RSpec examples.

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`.

#### Parameters

  • args - an array of command-line-supported arguments
  • err - error stream (Default: $stderr)
  • out - output stream (Default: $stdout)

#### Returns

  • Fixnum - exit status code (0/1)

[Validate]