[Cppunit-devel] Running subset of CPPUnit tests in non-interactive mode
Brought to you by:
blep
|
From: Srivalli A. <sar...@ya...> - 2005-12-22 19:33:23
|
Hi!
I have written a few testcases in one testsuite using CPPUnit in non-interactive mode (console application). I am trying to provide an option of running a subset of testcases.
When I try to get name of a testcase it returns only the suite name.
CPPUNIT_NS::Test *suite = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest();
CPPUNIT_NS::Test *childTest = suite->getChildTestAt( 0 );
cout << "ChildTestName is: " << childTest->getName() << endl;
CPPUNIT_NS::Test *childTest2 = suite->getChildTestAt( 1 );
cout << "ChildTestName2 is: " << childTest2->getName() << endl;
How can I get name of testcase that is within the suite?
Is there an example of running subset of tests using CPPUnit in non-interactive mode?
Thanks
Srivalli.
---------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less |