|
Jon Test
C++ Unit Test Tool. Not for production -- sample code only
|


Go to the source code of this file.
Macros | |
| #define | TEST_SUITE(testSuiteName) |
| Defines a Test Suite named testSuiteName. | |
| #define | TEST_SUITE_END() |
| Finish definition of a Test Suite started with TEST_SUITE(). | |
| #define | TEST_CASE(testCaseName) |
| Defines a Test Case method named testCaseName within a Test Suite defined by TEST_SUITE(). | |
| #define TEST_CASE | ( | testCaseName | ) |
Defines a Test Case method named testCaseName within a Test Suite defined by TEST_SUITE().
| testCaseName | Name of Test Suite suitable for a class name. |
This creates a function named testCaseName and a helper named testCaseName with "_holder" appended to automatically register the Test Case.
Definition at line 91 of file TestSuite.h.
| #define TEST_SUITE | ( | testSuiteName | ) |
Defines a Test Suite named testSuiteName.
| testSuiteName | Name of Test Suite suitable for a class name. |
This creates a class named testSuiteName obeying the TestSuiteInterface, and a single unique instance of the class which is automatically registered with TestRunner.
When running this Test Suite, each Test Case defined by TEST_CASE() will be called as:
testSuiteName::setup()testSuiteName::testCaseName()testSuiteName::teardown()The user is free to add data members and member functions to support testing provided:
Typical usage:
Definition at line 63 of file TestSuite.h.
| #define TEST_SUITE_END | ( | ) |
Finish definition of a Test Suite started with TEST_SUITE().
Definition at line 77 of file TestSuite.h.