CppUnit project page FAQ CppUnit home page

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MfcTestRunner Class Reference
[Executing test]

MFC test runner. More...

#include <MfcTestRunner.h>

Collaboration diagram for MfcTestRunner:

Collaboration graph
[legend]
List of all members.

Public Methods

 MfcTestRunner ()
virtual ~MfcTestRunner ()
void run ()
void addTest (Test *test)
void addTests (const CppUnitVector< Test * > &tests)

Protected Types

typedef CppUnitVector< Test * > Tests

Protected Methods

TestgetRootTest ()

Protected Attributes

TestSuitem_suite
Tests m_tests

Detailed Description

MFC test runner.

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();    
 }
See also:
CppUnit::TextTestRunner, CppUnit::TestFactoryRegistry.


Member Typedef Documentation

typedef CppUnitVector<Test *> MfcTestRunner::Tests [protected]
 


Constructor & Destructor Documentation

MfcTestRunner::MfcTestRunner  
 

virtual MfcTestRunner::~MfcTestRunner   [virtual]
 


Member Function Documentation

void MfcTestRunner::addTest Test   test
 

void MfcTestRunner::addTests const CppUnitVector< Test * > &    tests
 

Test* MfcTestRunner::getRootTest   [protected]
 

void MfcTestRunner::run  
 


Member Data Documentation

TestSuite* MfcTestRunner::m_suite [protected]
 

Tests MfcTestRunner::m_tests [protected]
 


The documentation for this class was generated from the following file:
SourceForge Logo hosts this site. Send comments to:
CppUnit Developers