class Minitest::Reporters::JUnitReporter

def analyze_suite(tests)

def analyze_suite(tests)
  result = Hash.new(0)
  tests.each do |test|
    result[:"#{result(test)}_count"] += 1
    result[:assertion_count] += test.assertions
    result[:test_count] += 1
    result[:time] += test.time
  end
  result
end