lib/cucumber/formatter/junit.rb in cucumber-1.1.3 vs lib/cucumber/formatter/junit.rb in cucumber-1.1.4

- old
+ new

@@ -26,10 +26,11 @@ @time = 0 end def before_feature_element(feature_element) @in_examples = Ast::ScenarioOutline === feature_element + @steps_start = Time.now end def after_feature(feature) @testsuite = OrderedXmlMarkup.new( :indent => 2 ) @testsuite.instruct! @@ -64,10 +65,9 @@ @scenario = (name.nil? || name == "") ? "Unnamed scenario" : name.split("\n")[0] @output = "#{keyword}: #{@scenario}\n\n" end def before_steps(steps) - @steps_start = Time.now end def after_steps(steps) return if @in_background || @in_examples