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 =~ /\/(.*)\//
  assertions = suite.send("#{type}_methods").grep(filter).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