From: James Britt Date: 2004-08-16T05:49:59+09:00 Subject: Re: Test::Unit feature request - regexp pattern of tests to run Simon Strandgaard wrote: > On Sunday 15 August 2004 15:43, Simon Strandgaard wrote: > >>It would be awesome if I could say >> >>prompt> ruby test_me.rb --name "test_.*something.*" >> >>so that all tests with 'something' in their method name gets invoked. >> >>However on ruby 1.8.1.. only zero tests are being invoked. >>So I guess it isn't supported. >> >> >>Such feature would be awesome. > > > 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 . I've started partitioning tests into separate files, each file holding related tests (e.g., each file might focus on some particular feature or behavior). The tests are called by a master script that executes files matching a given glob pattern. By default, all of the test files are run, but I can specify specific files or groups of files. When I'm working on new tests, I put them in a new file and run just that set. When I'm happy with them, I move them to a more permanent home. James James