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