From: Jano Svitok Date: 2008-08-05T18:54:59+09:00 Subject: Re: testunit: run single test On Tue, Aug 5, 2008 at 10:48, ruud grosmann wrote: > no. no succes. > > The point is that my do_it script in the mail is simplified a bit. It > is more like > ================== > #!/usr/bin/ruby1.8 > > require 'getoptlong' > require 'test' > > opts = GetoptLong.new( > #[ "--name", "-n", GetoptLong::REQUIRED_ARGUMENT ], > [ "-h", GetoptLong::NO_ARGUMENT ], > [ "-d", GetoptLong::NO_ARGUMENT ], > [ "-v", GetoptLong::NO_ARGUMENT ] > ) > ===================== > > It either runs all tests (when I define the -n option which is > commented out above), or it complains that -n is an invalid option. > I am afraid that I have to code some things the Test-objects do > magically when nothing is specified. > > But I have no single clue as to what it should be. > > Any ideas? > > tia, Ruud Lookup test\unit\autorunner.rb and see how it does its stuff. Copy&paste the part that starts only single thread. Or delegate to its command line parser. Jano