Contains a sequence of tests which have to be executed sequentially.
More...
#include <TestCaseCollection.h>
|
| std::list< TestCase * > | _testCases |
| | Sequence of test cases that are executes on a run() call.
|
| |
| bool | _writeToLog |
| | Tells the collection wheather to log a progression bar.
|
| |
| bool | _deleteTestCases |
| | Tells whether the testcases contained should be deleted uppon destruction of this object.
|
| |
Contains a sequence of tests which have to be executed sequentially.
The object manages a sequence of references. The user is responsible for creating and destroying the test case instances.
- Author
- Tobias Weinzierl
- Version
- Revision
- 1.7
Definition at line 29 of file TestCaseCollection.h.
◆ TestCaseCollection() [1/2]
| tarch::tests::TestCaseCollection::TestCaseCollection |
( |
| ) |
|
|
private |
◆ TestCaseCollection() [2/2]
| tarch::tests::TestCaseCollection::TestCaseCollection |
( |
const std::string & | testCaseCollectionName, |
|
|
bool | deleteTestCases = true, |
|
|
bool | writeToLog = true ) |
Creates a test case collection.
- Parameters
-
| testCaseCollectionName | Name of the test case collection. |
◆ ~TestCaseCollection()
| virtual tarch::tests::TestCaseCollection::~TestCaseCollection |
( |
| ) |
|
|
virtual |
◆ addTestCase()
| void tarch::tests::TestCaseCollection::addTestCase |
( |
TestCase * | testCase | ) |
|
Adds a new test case.
Although you pass a pointer, you are still responsible for the instance management.
You have to specify in the constructor of a TestCaseCollection whether it should delete test cases contained on construction.
◆ run()
| virtual void tarch::tests::TestCaseCollection::run |
( |
| ) |
|
|
virtual |
◆ _deleteTestCases
| bool tarch::tests::TestCaseCollection::_deleteTestCases |
|
private |
Tells whether the testcases contained should be deleted uppon destruction of this object.
Definition at line 50 of file TestCaseCollection.h.
◆ _log
◆ _testCases
| std::list<TestCase*> tarch::tests::TestCaseCollection::_testCases |
|
private |
Sequence of test cases that are executes on a run() call.
The class is not responsible for destroying them.
Definition at line 35 of file TestCaseCollection.h.
◆ _writeToLog
| bool tarch::tests::TestCaseCollection::_writeToLog |
|
private |
The documentation for this class was generated from the following file: