class Cucumber::Formatter::DurationExtractor

Attributes

result_duration[R]

Public Class Methods

new(result) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 6
def initialize(result)
  @result_duration = 0
  result.describe_to(self)
end

Public Instance Methods

attach(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 27
def attach(*) end
duration(duration, *) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 23
def duration(duration, *)
  duration.tap { |dur| @result_duration = dur.nanoseconds / 10**9.0 }
end
exception(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 21
def exception(*) end
failed(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 13
def failed(*) end
passed(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 11
def passed(*) end
pending(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 19
def pending(*) end
skipped(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 17
def skipped(*) end
undefined(*) click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 15
def undefined(*) end