From: Nathaniel Talbott Date: 2004-08-17T01:03:58+09:00 Subject: Re: Test::Unit feature request - regexp pattern of tests to run On Aug 15, 2004, at 15:38, Simon Strandgaard wrote: > Another related feature I would like to see in Test::Unit.. > being able to execute tests which doesn't start with 'test' prefix. > > For instance I have certain tests which im working on.. > those I name #xtest_something.. > > However if I try to execute the test via the cli.. then it > just rejects it.. What im asking fore.. don't reject test names > supplied via the cli . The problem isn't really that test/unit is rejecting the tests... rather, because of the way suites are automatically constructed from TestCase classes, test/unit has to have some criteria for knowing which methods are tests and which methods aren't, and this criteria is that the method name must start with 'test'. Thus, I would tend to do this as James suggests, by partitioning tests that aren't working yet in to their own file and/or TestCase. Note that you can also select TestCases to run using a pattern: ruby test.rb -t /^X/ Then you could name in progress TestCases 'XWhatever', and run them using the above command. To run only completed test cases, just run: ruby test.rb -t /^[^X]/ I will say that some ideas I have cooking for a future version of test/unit may obviate this need, but that will be revealed in due time... Nathaniel Terralien, Inc. <:((><