#include <TestSuite.h>
A test suite is used intended to be used as follows. First, the test cases are loaded into the test suite. Then, the test suite is executed. This causes all the test cases loaded in the test suite to be executed in sequence. The test suite is responsible for setting up, executing, and shutting down each test case. After a test case has been shut down, the test suite queries it for the outcome of the test and writes this outcome together with the accompanying test message to an output file. The data structure holding the test cases is defined statically and can hold a maximum of MAX_TEST_CASES_IN_SUITE test cases.
Definition at line 39 of file TestSuite.h.
Public Member Functions | |
TestSuite (FILE *out) | |
Constructor defining the output file. | |
void | runTestSuite (void) |
Execute all the test cases currently loaded in the test suite and write outcome information to the output file. | |
void | loadTestCase (TestCase *newTestCase) |
Load a new test case in the test suite. |
|
Constructor defining the output file.
Definition at line 16 of file TestSuite.cpp. |
|
Load a new test case in the test suite. If the maximum number of test cases in the test suite has been exceeded, then an error message is written to the output file.
Definition at line 48 of file TestSuite.cpp. |