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