From: Phlip Date: 2006-09-05T07:40:10+09:00 Subject: Re: run only one test case? > Here's where I run my Ruby/Unit suite: > > aTestSuite = Test::Unit::TestSuite.new("MRW") > aTestSuite << a bunch of suites > got = runner.run(aTestSuite) The above code runs all test cases. I want to run only one of them. > Now how to augment that so we fetch ARGV[], and if there's a test case by > name, only run that one case? Suppose one of them is called test_readMyPost. Can I run it like this? got = runner.run(aTestSuite, 'test_readMyPost') Alternately, could I loop thru aTestSuite's cases, find it, and run it? (I'm not asking how to run test suites, or how to parse command line arguments here!) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!!