From: Sam Roberts Date: 2006-07-14T03:43:29+09:00 Subject: Re: [PATCH] --fqname option to test/unit/autorunner.rb On Fri, Jul 14, 2006 at 02:34:34AM +0900, jonathan gold wrote: > Thanks again for getting back to me. Perhaps my original focus on the > fact that I had multiple test cases in the same file was something of a > red herring -- I think it's only incidental to the real issue. > > As I understand the current intent of AutoRunner, and of the testing > libraries as a whole, the intent is to have a collector > (Collector::ObjectSpace, Collector::Dir, or otherwise) gather up > multiple test cases from somewhere. As it is today, the '--testcase' and > the '--name' options are in place to allow the user to filter the > collection, regardless of how they were collected, in some meaningful > way. I believe that these two options leave a gap for what I'm proposing > with '--fqname', and so it seems that the patch would be in line with > the current spirit of the libraries. For what its worth, I think your point makes sense. One question, could the syntax of --name be extended, so if there is a # or a :: in it is referring to a specific test name in a specific test suite? I think it would be useful to just have a single option, a bit like rdoc, if it is specific enough it will run one test, if not it will run multiple. Just a thought. Thanks, Sam