class Cucumber::Formatter::Usage
def aggregate_info
def aggregate_info @stepdef_to_match.each do |key, steps| if steps.empty? key.status = :skipped key.mean_duration = 0 else key.status = 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