Sha256: 165d113f84bbb24752186876404a36351c46e9068bdabad024aaf6ba53ed4060
Contents?: true
Size: 614 Bytes
Versions: 6
Compression:
Stored size: 614 Bytes
Contents
require 'parallel_tests/cucumber/io' module ParallelTests module Cucumber 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 = Time.now.to_f end def after_feature(feature) @example_times[feature.file] += Time.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
6 entries across 6 versions & 1 rubygems