Sha256: 77407dafa26269a07efeb266ddbc5fb327fdbb4e940838c54d68ebad4fadbb57
Contents?: true
Size: 937 Bytes
Versions: 3
Compression:
Stored size: 937 Bytes
Contents
module RSpec::Core class QueueRunner < Runner def initialize options = ::RSpec::Core::ConfigurationOptions.new(ARGV) super(options) end def example_groups setup($stderr, $stdout) @world.ordered_example_groups end def run_specs(iterator) @configuration.reporter.report(@world.ordered_example_groups.count) do |reporter| begin hook_context = SuiteHookContext.new @configuration.hooks.run(:before, :suite, hook_context) iterator.map { |g| print " #{g.description}: " start = Time.now ret = g.run(reporter) diff = Time.now-start puts(" <%.3f>" % diff) ret }.all? ? 0 : @configuration.failure_exit_code ensure @configuration.hooks.run(:after, :suite, hook_context) end end end alias_method :run_each, :run_specs end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
test-queue-0.2.12 | lib/test_queue/runner/rspec3.rb |
test-queue-0.2.11 | lib/test_queue/runner/rspec3.rb |
test-queue-0.2.10 | lib/test_queue/runner/rspec3.rb |