class MiniTest::Unit

def _run_suite suite, type

def _run_suite suite, type
  header = "#{type}_suite_header"
  puts send(header, suite) if respond_to? header
  filter = options[:filter] || '/./'
  filter = Regexp.new $1 if filter =~ /\/(.*)\//
  all_test_methods = suite.send "#{type}_methods"
  filtered_test_methods = all_test_methods.find_all { |m|
    filter === m || filter === "#{suite}##{m}"
  }
  assertions = filtered_test_methods.map { |method|
    inst = suite.new method
    inst._assertions = 0
    print "#{suite}##{method} = " if @verbose
    start_time = Time.now if @verbose
    result = inst.run self
    print "%.2f s = " % (Time.now - start_time) if @verbose
    print result
    puts if @verbose
    inst._assertions
  }
  return assertions.size, assertions.inject(0) { |sum, n| sum + n }
end