CppUnit project page FAQ CppUnit home page

Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
QtTestRunner Class Reference

QT test runner.Here is an example of usage: More...

#include <QtTestRunner.h>

Collaboration diagram for QtTestRunner:
Collaboration graph
[legend]

Public Member Functions

 QtTestRunner ()
 
virtual ~QtTestRunner ()
 
void run (bool autoRun=false)
 
void addTest (Test *test)
 

Private Types

typedef CppUnitVector< Test * > Tests
 

Private Member Functions

 QtTestRunner (const QtTestRunner &copy)
 Prevents the use of the copy constructor. More...
 
void operator= (const QtTestRunner &copy)
 Prevents the use of the copy operator. More...
 
TestgetRootTest ()
 

Private Attributes

Tests_tests
 
TestSuite_suite
 

Detailed Description

QT test runner.

Here is an example of usage:

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

Member Typedef Documentation

◆ Tests

Constructor & Destructor Documentation

◆ QtTestRunner() [1/2]

QtTestRunner::QtTestRunner ( )

Constructs a TestRunner object.

◆ ~QtTestRunner()

virtual QtTestRunner::~QtTestRunner ( )
virtual

Destructor.

◆ QtTestRunner() [2/2]

QtTestRunner::QtTestRunner ( const QtTestRunner copy)
private

Prevents the use of the copy constructor.

Member Function Documentation

◆ addTest()

void QtTestRunner::addTest ( Test test)

◆ getRootTest()

Test* QtTestRunner::getRootTest ( )
private

◆ operator=()

void QtTestRunner::operator= ( const QtTestRunner copy)
private

Prevents the use of the copy operator.

◆ run()

void QtTestRunner::run ( bool  autoRun = false)

Member Data Documentation

◆ _suite

TestSuite* QtTestRunner::_suite
private

◆ _tests

Tests* QtTestRunner::_tests
private

The documentation for this class was generated from the following file:

SourceForge Logo hosts this site. Send comments to:
CppUnit Developers