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 7 def initialize(result) @result_duration = 0 result.describe_to(self) end
Public Instance Methods
duration(duration, *)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 24 def duration(duration, *) duration.tap { |duration| @result_duration = duration.nanoseconds / 10**9.0 } end
exception(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 22 def exception(*) end
failed(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 14 def failed(*) end
passed(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 12 def passed(*) end
pending(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 20 def pending(*) end
skipped(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 18 def skipped(*) end
undefined(*)
click to toggle source
# File lib/cucumber/formatter/duration_extractor.rb, line 16 def undefined(*) end