Sha256: f7f2b7e43d83b06cbf4108d405513603a11a6c6a37237a2c08b930eb29dd9aa1
Contents?: true
Size: 857 Bytes
Versions: 1
Compression:
Stored size: 857 Bytes
Contents
require 'parallel_split_test/command_line' # a cleaned up version of the RSpec runner, e.g. no drb support module ParallelSplitTest class Runner < RSpec::Core::Runner def self.run(args, err=$stderr, out=$stdout) trap_interrupt options = RSpec::Core::ConfigurationOptions.new(args) options.parse_options ParallelSplitTest.choose_number_of_processes out.puts "Running examples in #{ParallelSplitTest.processes} processes" report_execution_time(out) do ParallelSplitTest::CommandLine.new(options).run(err, out) end ensure RSpec.reset end def self.report_execution_time(out) start = Time.now.to_f result = yield runtime = Time.now.to_f - start out.puts "Took %.2f seconds with #{ParallelSplitTest.processes} processes" % runtime result end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parallel_split_test-0.2.0 | lib/parallel_split_test/runner.rb |