Permalink
Browse files

Merge pull request #187 from stefanhaller/fix_junit_time_reporting

Times reported by JUnit formatter include background and Before hooks
  • Loading branch information...
2 parents a134e67 + d0db6db commit f28fbe257b869134c29174980fbc845608ff94ac @mattwynne mattwynne committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cucumber/formatter/junit.rb
@@ -28,6 +28,7 @@ def before_feature(feature)
def before_feature_element(feature_element)
@in_examples = Ast::ScenarioOutline === feature_element
+ @steps_start = Time.now
end
def after_feature(feature)
@@ -66,7 +67,6 @@ def scenario_name(keyword, name, file_colon_line, source_indent)
end
def before_steps(steps)
- @steps_start = Time.now
end
def after_steps(steps)

0 comments on commit f28fbe2

Please sign in to comment.