# File lib/rcodetools/xmpfilter.rb, line 89
  def initialize_for_test_script(test_script, test_method, filename)
    test_script.replace File.expand_path(test_script)
    filename.replace File.expand_path(filename)
    unless test_script == filename
      basedir = common_path(test_script, filename)
      relative_filename = filename[basedir.length+1 .. -1].sub(%r!^lib/!, '')
      @evals << %Q!$LOADED_FEATURES << #{relative_filename.dump}!
      @evals << safe_require_code('test/unit')
      @evals << %Q!load #{test_script.dump}!
    end
    test_method = get_test_method_from_lineno(test_script, test_method.to_i) if test_method =~ /^\d/
    @evals << %Q!Test::Unit::AutoRunner.run(false, nil, ["-n", #{test_method.dump}])! if test_method
  end