From: Rick Tan Date: 2011-03-26T01:15:23+09:00 Subject: Re: command line arguments in unit/test Yes, it does. Thanks a lot -Rick Alex Young wrote in post #989065: > Does this help? > > > $ cat /tmp/trial.rb > > require 'test/unit' > > $my_argv = ARGV.dup > > class MyTest < Test::Unit::TestCase > def setup > p $my_argv > end > > def test_dummy; end > end > > $ ruby /tmp/trial.rb foo bar qux > Loaded suite /tmp/trial > Started > ["foo", "bar", "qux"] > . > Finished in 0.00097 seconds. > > 1 tests, 0 assertions, 0 failures, 0 errors > > -- > Alex -- Posted via http://www.ruby-forum.com/.