# File lib/cucumber/formatter/usage.rb, line 106 def aggregate_info @stepdef_to_match.each do |key, steps| if steps.empty? key.status = :skipped key.mean_duration = 0 else key.status = Ast::StepInvocation.worst_status(steps.map{|step| step[:status]}) total_duration = steps.inject(0) {|sum, step| step[:duration] + sum} key.mean_duration = total_duration / steps.length end end end