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

CppUnit::QtUi::TestRunner Class Reference
[Executing test]

QT test runner. More...

#include <TestRunner.h>

List of all members.

Public Member Functions

 TestRunner ()
virtual ~TestRunner ()
void run (bool autoRun=false)
void addTest (CppUnit::Test *test)

Private Types

typedef std::vector< Test * > Tests

Private Member Functions

 TestRunner (const TestRunner &copy)
 Prevents the use of the copy constructor.

void operator= (const TestRunner &copy)
 Prevents the use of the copy operator.

TestgetRootTest ()

Private Attributes

Tests_tests
TestSuite_suite


Detailed Description

QT test runner.

Here is an example of usage:

 #include <cppunit/extensions/TestFactoryRegistry.h>
 #include <cppunit/ui/qt/TestRunner.h>

 [...]

 void 
 QDepWindow::runTests()
 {
   CppUnit::QtUi::TestRunner runner;
   runner.addTest( CppUnit::TestFactoryRegistry::getRegistry().makeTest() );
   runner.run( true );
 }


Member Typedef Documentation

typedef std::vector<Test *> CppUnit::QtUi::TestRunner::Tests [private]
 


Constructor & Destructor Documentation

CppUnit::QtUi::TestRunner::TestRunner  ) 
 

Constructs a TestRunner object.

virtual CppUnit::QtUi::TestRunner::~TestRunner  )  [virtual]
 

Destructor.

CppUnit::QtUi::TestRunner::TestRunner const TestRunner copy  )  [private]
 

Prevents the use of the copy constructor.


Member Function Documentation

void CppUnit::QtUi::TestRunner::addTest CppUnit::Test test  ) 
 

Test* CppUnit::QtUi::TestRunner::getRootTest  )  [private]
 

void CppUnit::QtUi::TestRunner::operator= const TestRunner copy  )  [private]
 

Prevents the use of the copy operator.

void CppUnit::QtUi::TestRunner::run bool  autoRun = false  ) 
 


Member Data Documentation

TestSuite* CppUnit::QtUi::TestRunner::_suite [private]
 

Tests* CppUnit::QtUi::TestRunner::_tests [private]
 


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