Sumanth Gowda - 2008-11-06

Hi,

I have an Mfc app which contain all the test cases .

Lets consider the examples given in cppunit test framework itself.

CppUnitTestApp. for example.

Now I create one more library called samletest using Visual Studio 8,and add few more custom test cases.

Then I link this new lib with CppUnitTestApp.

When I compile CppUnitTestApp with this new lib it compiles fine. But I do not see the newly added test cases in sampletest lib, being picked up by the CppUnitTestApp.

I register my test cases in sampletest using macro CPPUNIT_TEST_SUITE_REGISTRATION( SampleTestCase );

Now the question for me is ,
doesn't the test runner

******************************************************************************************
CPPUNIT_NS::MfcUi::TestRunner runner;

  runner.addTest( CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest() );

  runner.run();
*******************************************************************************************
automatically pick up the test cases from the library too?

How do I achieve this using cppunit test. Is there alternative way or is there some thing that I am doing wrong.

An help would be appreciated .

Thanks
Sumanth