Method: RSpec::Core::Runner#run_specs

Defined in:
opal/opal/rspec/runner.rb

#run_specs(example_groups) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
# File 'opal/opal/rspec/runner.rb', line 78

def run_specs(example_groups)
  @configuration.reporter.report_async(@world.example_count(example_groups)) do |reporter|
    hook_context = SuiteHookContext.new
    Promise.value.then do
      @configuration.hooks.run(:before, :suite, hook_context)
      run_groups_async example_groups, reporter
    end.ensure do |result|
      @configuration.hooks.run(:after, :suite, hook_context)
      result
    end
  end
end