CppUnit project page FAQ

Public Member Functions | Private Types | Private Member Functions | Private Attributes
QtTestRunner Class Reference

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

#include <QtTestRunner.h>

Collaboration diagram for QtTestRunner:
Collaboration graph
[legend]

List of all members.

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.
void operator= (const QtTestRunner &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:

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

Member Typedef Documentation


Constructor & Destructor Documentation

QtTestRunner::QtTestRunner ( )

Constructs a TestRunner object.

virtual QtTestRunner::~QtTestRunner ( )
virtual

Destructor.

QtTestRunner::QtTestRunner ( const QtTestRunner copy)
private

Prevents the use of the copy constructor.


Member Function Documentation

void QtTestRunner::addTest ( Test test)
Test* QtTestRunner::getRootTest ( )
private
void QtTestRunner::operator= ( const QtTestRunner copy)
private

Prevents the use of the copy operator.

void QtTestRunner::run ( bool  autoRun = false)

Member Data Documentation

TestSuite* QtTestRunner::_suite
private
Tests* QtTestRunner::_tests
private

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

Send comments to:
CppUnit Developers