class ParallelSplitTest::Runner
Public Class Methods
run(args, err=$stderr, out=$stdout)
click to toggle source
@overwrite stripped down version of run without –drb support / option parsing
# File lib/parallel_split_test/runner.rb, line 9 def self.run(args, err=$stderr, out=$stdout) trap_interrupt report_execution_time(out) do ParallelSplitTest::CommandLine.new(args).run(err, out) end ensure RSpec.reset end
Private Class Methods
report_execution_time(out) { || ... }
click to toggle source
# File lib/parallel_split_test/runner.rb, line 21 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