CppUnit project page | FAQ | CppUnit home page

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# QtTestRunner Class Reference
[Executing test]

QT test runner. More...

`#include <QtTestRunner.h>`

Collaboration diagram for QtTestRunner:

[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.
Test * | getRootTest ()
## 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 CppUnitVector<Test *> QtTestRunner::Tests`[private]`

## 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::run | ( | bool | autoRun = `false` | ) |

void QtTestRunner::addTest | ( | Test * | test | ) |

void QtTestRunner::operator= | ( | const QtTestRunner & | copy | ) | `[private]`

Prevents the use of the copy operator.

Test* QtTestRunner::getRootTest | ( |  | ) | `[private]`

## Member Data Documentation

Tests* QtTestRunner::_tests`[private]`

TestSuite* QtTestRunner::_suite`[private]`

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

- QtTestRunner.h

| hosts this site. |  | Send comments to: CppUnit Developers