class UglyFace::Formatter::ReportScenario
Attributes
duration[RW]
file_colon_line[RW]
image[RW]
image_id[RW]
image_label[RW]
name[RW]
status[RW]
steps[RW]
Public Class Methods
new(scenario)
click to toggle source
# File lib/ugly_face/formatter/report.rb, line 169 def initialize(scenario) @steps = [] @image = [] @image_label = [] @image_id = [] @start = Time.now end
Public Instance Methods
has_image?()
click to toggle source
# File lib/ugly_face/formatter/report.rb, line 189 def has_image? not image.nil? end
populate(scenario)
click to toggle source
# File lib/ugly_face/formatter/report.rb, line 177 def populate(scenario) @duration = Time.now - @start @status = scenario.status if scenario.instance_of? Cucumber::Formatter::LegacyApi::Ast::Scenario @name = scenario.name @file_colon_line = scenario.line elsif scenario.instance_of? Cucumber::Formatter::LegacyApi::Ast::ExampleTableRow @name = scenario.name @file_colon_line = scenario.line end end