# File lib/turn/runners/testrunner.rb, line 22
    def initialize(suite, output_level, stdout=$stdout)
      turn_config = Turn.config

      #output_level = 2 # 2-NORMAL 3-VERBOSE

      name = turn_config.suite_name

      # TODO: instead of building up a new suite, filter the suite
      # passed into initialize.
      sub_suites = []
      ObjectSpace.each_object(Class) do |klass|
        if(Test::Unit::TestCase > klass)
          sub_suites << klass.suite
        end
      end
      suite = Test::Unit::TestSuite.new(name)

      matchcase = turn_config.matchcase
      pattern   = turn_config.pattern

      if matchcase
        sub_suites = sub_suites.select{|s| matchcase =~ s.name}
      end
      sub_suites.sort_by{|s|s.name}.each{|s| suite << s}

      suite.tests.each do |c|
        c.tests.reject!{ |t| pattern !~ t.method_name }
      end

      @t_reporter = turn_config.reporter

      super(suite, output_level, stdout)
    end