CppUnit project page | FAQ | CppUnit home page |
#include <MfcTestRunner.h>
Public Member Functions | |
MfcTestRunner () | |
virtual | ~MfcTestRunner () |
void | run () |
void | addTest (Test *test) |
void | addTests (const CppUnitVector< Test * > &tests) |
Protected Types | |
typedef CppUnitVector< Test * > | Tests |
Protected Member Functions | |
Test * | getRootTest () |
Protected Attributes | |
TestSuite * | m_suite |
Tests | m_tests |
Use this to launch the MFC TestRunner. Usually called from you CWinApp subclass:
#include <cppunit/ui/mfc/MfcTestRunner.h> #include <cppunit/extensions/TestFactoryRegistry.h> void CHostAppApp::RunUnitTests() { CppUnit::MfcTestRunner runner; runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() ); runner.run(); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |