class Cucumber::Formatter::Usage

def on_test_step_finished(event)

def on_test_step_finished(event)
  return if event.test_step.hook?
  test_step = event.test_step
  result = event.result.with_filtered_backtrace(Cucumber::Formatter::BacktraceFilter)
  step_match = @matches[test_step.to_s]
  unless step_match.nil?
    step_definition = step_match.step_definition
    stepdef_key = StepDefKey.new(step_definition.expression.to_s, step_definition.location)
    unless @stepdef_to_match[stepdef_key].map { |key| key[:location] }.include? test_step.location
      duration = DurationExtractor.new(result).result_duration
      keyword = @ast_lookup.step_source(test_step).step.keyword
      @stepdef_to_match[stepdef_key] << {
        keyword: keyword,
        step_match: step_match,
        status: result.to_sym,
        location: test_step.location,
        duration: duration
      }
    end
  end
  super
end