FW: [Cppunit-devel] v1.9.10 problem/question
Brought to you by:
blep
From: Dave H. <DH...@xr...> - 2003-09-23 12:20:56
|
Perhaps I should have given more information... I am using the MFC UI version of CppUnit. In my test modules I = declare... CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( CMyClassTest, = unitTestToolSuiteName() ); My test classes derives from... CPPUNIT_NS::TestFixture I use the following macros just inside my test class definition... CPPUNIT_TEST_SUITE( CMyClassTest); CPPUNIT_TEST( testCase ); CPPUNIT_TEST_SUITE_END(); In my app class, I call the following function... void CppUnitTestApp::RunTests() { CPPUNIT_NS::MfcUi::TestRunner runner; runner.addTest( = CPPUNIT_NS::TestFactoryRegistry::getRegistry().makeTest() ); runner.run(); } I also, in one module, call the following macro... CPPUNIT_REGISTRY_ADD_TO_DEFAULT( unitTestToolSuiteName() ); I think that was it. What am I doing wrong? I do not see any tests in = the TestRunner Test drop-down combobox! -dh -----Original Message----- From: Dave Hoffer=20 Sent: Monday, September 22, 2003 4:54 PM To: cpp...@li... Subject: [Cppunit-devel] v1.9.10 problem/question I am upgrading out unit tests to use v1.9.10. I have all my tests = converted, I followed the example in the CppUnitTestApp project. = Everything compiles and runs however there are no tests shown in the = test dialog. I then ran the same example project and had the same = problem. I looked a bit at the code and there seems to be a problem in = that you can't add tests unless there is something in the 'history' but = how do you get something in the 'history' if you can't run tests? I must be missing something, what am I doing wrong? -dh ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Cppunit-devel mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppunit-devel |