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 201 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 218 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 216 def exception(*) end
failed(*)
click to toggle source
# File lib/cucumber/formatter/junit.rb, line 208 def failed(*) end
passed(*)
click to toggle source
# File lib/cucumber/formatter/junit.rb, line 206 def passed(*) end
pending(*)
click to toggle source
# File lib/cucumber/formatter/junit.rb, line 214 def pending(*) end
skipped(*)
click to toggle source
# File lib/cucumber/formatter/junit.rb, line 212 def skipped(*) end
undefined(*)
click to toggle source
# File lib/cucumber/formatter/junit.rb, line 210 def undefined(*) end