Sha256: ba5a1309ea63acbe8c793b3c1917c723d31eca700628e59c9203d075539639f7
Contents?: true
Size: 630 Bytes
Versions: 53
Compression:
Stored size: 630 Bytes
Contents
require 'parallel_tests/gherkin/io' module ParallelTests module Gherkin class RuntimeLogger include Io def initialize(step_mother, path_or_io, options=nil) @io = prepare_io(path_or_io) @example_times = Hash.new(0) end def before_feature(_) @start_at = ParallelTests.now.to_f end def after_feature(feature) @example_times[feature.file] += ParallelTests.now.to_f - @start_at end def after_features(*args) lock_output do @io.puts @example_times.map { |file, time| "#{file}:#{time}" } end end end end end
Version data entries
53 entries across 53 versions & 2 rubygems