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 222
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 239
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 237
def exception(*) end
failed(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 229
def failed(*) end
passed(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 227
def passed(*) end
pending(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 235
def pending(*) end
skipped(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 233
def skipped(*) end
undefined(*) click to toggle source
# File lib/cucumber/formatter/junit.rb, line 231
def undefined(*) end