From: Simon Strandgaard Date: 2004-08-16T05:29:20+09:00 Subject: Re: Test::Unit feature request - regexp pattern of tests to run On Sunday 15 August 2004 22:05, David Heinemeier Hansson wrote: > > prompt> ruby test_me.rb --name "test_.*something.*" > > > > so that all tests with 'something' in their method name gets invoked. > > This is already in. You just need to pass a regular expression instead > of a string: > > ruby test_me.rb -n /test_.*something.*/ > > Very useful... Ok.. hmm Thanks.. (how did I overlooked that?) However.. still methods without 'test_' prefix gets rejected. It would be nice if Test::Unit didn't reject non tests. bash-2.05b$ ruby test_buffer.rb -n /xtest_bracket_matcher13/ Loaded suite test_buffer Started Finished in 0.00142 seconds. 0 tests, 0 assertions, 0 failures, 0 errors bash-2.05b$ grep xtest test_buffer.rb def xtest_string_paren_forward5 def xtest_bracket_matcher13 bash-2.05b$ ruby -v ruby 1.8.1 (2004-04-24) [i386-linux-gnu] bash-2.05b$ -- Simon Strandgaard