method
run_examples
1.1.4 -
Show latest stable
- Class:
Spec::Runner::Options
run_examples()public
No documentation available.
# File lib/spec/runner/options.rb, line 88
def run_examples
return true unless examples_should_be_run?
success = true
begin
before_suite_parts.each do |part|
part.call
end
runner = custom_runner || ExampleGroupRunner.new(self)
unless @files_loaded
runner.load_files(files_to_load)
@files_loaded = true
end
if example_groups.empty?
true
else
set_spec_from_line_number if line_number
success = runner.run
@examples_run = true
heckle if heckle_runner
success
end
ensure
after_suite_parts.each do |part|
part.call(success)
end
end
end