[Cppunit-devel] Silly question in CppUnit
Brought to you by:
blep
From: Erick E. <eer...@op...> - 2002-12-18 21:51:05
|
Hi! I'm trying to get my arms around CppUnit to figure out whether we can use it easily and I'm having a little problem.... Are there any examples you can point me to that allows me to do something interesting with CppUnit::TextUi::TestRunner.run("testname", true); ? The fact that I can give a name to <run> implies that I can run some (suite?) of tests. My problem is that I completely miss how to register tests by name so they can be run later. When I step through the debugger into <run>, it goes into code that searches a list (things like RunTestByName). Again, when stepping through here the only test returned is "All Tests" which is the default. I have a feeling that either I'm totally missing the boat here or what I want to do is not possible. What I'm after is the ability to run a test suite by name from the command-line version. I couldn't find a discussion of this problem on the net, perhaps I'm just not part of the right newsgroup. Thanks Erick Erickson |