Paul Lutus wrote:
> Phlip wrote:
> 
>> Rubies:
>> 
>> Here's where I run my Ruby/Unit suite:
>> 
>>     aTestSuite = Test::Unit::TestSuite.new("MRW")
>>     aTestSuite << a bunch of suites
>>     got = runner.run(aTestSuite)
>> 
>> Now how to augment that so we fetch ARGV[], and if there's a test case by
>> name, only run that one case?
> 
> Is this what you mean?
> 
> #! /usr/bin/ruby
> 
> def exec(s)
>         puts "Exec #{s}"
> end
> 
> if ARGV.size > 0
>         exec(ARGV.first)
> else
>         exec("something else")
> end

Combine that with
  Test::Unit::UI::Console::TestRunner.run(TS_MyTests)
From 
http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html
And I think you can do what you want.

-- 
Posted via http://www.ruby-forum.com/.