Method: Test::Unit::GlobOption#setup_options

Defined in:
lib/test/unit.rb

#setup_options(parser, options) ⇒ Object



163
164
165
166
167
168
169
170
171
# File 'lib/test/unit.rb', line 163

def setup_options(parser, options)
  super
  parser.on '-b', '--basedir=DIR', 'Base directory of test suites.' do |dir|
    options[:base_directory] = dir
  end
  parser.on '-x', '--exclude PATTERN', 'Exclude test files on pattern.' do |pattern|
    (options[:reject] ||= []) << pattern
  end
end