2009-07-22 15:27:34 UTC
I'm not sure if the default TextTestRunner has this by default, but at work I created my own runner (i.e. main function) that parses the command line arguments and passes an argument into the FindTest function. (I created by own main function since I also wanted a verbose output toggle.)
You then only use the TestFactoryRegistry to collect the tests into one set and search that set for one or more tests, given a string like MyTest or MyTest::Test1 to select a specific or group of tests.
Basically I used the code on this page and dug for five minutes in the API docs to get what I wanted:
http://cppunit.sourceforge.net/doc/lastest/cppunit_cookbook.html