class Cucumber::Formatter::ResultBuilder

Attributes

test_case_duration[R]

Public Class Methods

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

Public Instance Methods

duration(duration, *) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 232
def duration(duration, *)
  duration.tap { |duration| @test_case_duration = duration.nanoseconds / 10**9.0 }
end
exception(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 230
def exception(*) end
failed(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 222
def failed(*) end
passed(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 220
def passed(*) end
pending(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 228
def pending(*) end
skipped(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 226
def skipped(*) end
undefined(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 224
def undefined(*) end