OpenClovis Test Infrastructure. More...
Go to the source code of this file.
Macros | |
| #define | clTest(string, predicate, errorPrintf) |
| Run an individual test. | |
| #define | clTestCase(name, test) |
| Run a test case. | |
| #define | clTestCaseEnd(synopsis) |
| Stop this test case. | |
| #define | clTestCaseMalfunction(reason, predicate, execOnFailure) |
| Indicate that this test case cannot be completed, if the predicate fails. | |
| #define | clTestCaseNumErrors() clCurTc.failed |
| Returns the number of errored (failed) tests run so far in this test case. | |
| #define | clTestCaseNumMalfunctions() clCurTc.malfunction |
| Return the number of malfunctioned tests in this test case (so far). | |
| #define | clTestCaseNumPasses() clCurTc.passed |
| Return the number of successful (passed) test run so far in this test case. | |
| #define | clTestCaseStart(testname) |
| Start a Test Case. | |
| #define | clTestExecOnFailure(string, predicate, errorPrintf, execOnFailure) |
| Run an individual test, and run some special code if it fails. | |
| #define | clTestFailed(__string) clTestFailedAt(__FILE__, __LINE__,__string) |
| Indicate that a test failed. | |
| #define | clTestFailedAt(__file, __line, __string) |
| Just like clTestFailed, but allows the caller to specify the file and line. | |
| #define | clTestGroupFinalize() clTestGroupFinalizeImpl() |
| Stop the Test infrastructure. | |
| #define | clTestGroupInitialize(name) clTestPrint(name) |
| Start up the Test infrastructure. | |
| #define | clTestGroupMalfunction(reason, predicate, execOnFailure) |
| Indicate that the Test Group cannot execute, if an expression evaluates to False. | |
| #define | clTestPrint(x) clTestPrintAt(__FILE__, __LINE__, __FUNCTION__, x) |
| Print something to the test console. | |
| #define | clTestPrintAt(__file, __line, __function, x) |
| Just like clTestPrint, but allows the caller to specify the file and line. | |
| #define | clTestSuccess(__string) clTestSuccessAt(__FILE__, __LINE__, __string) |
| Indicate that a test passed. | |
| #define | clTestSuccessAt(__file, __line, __string) |
| Just like clTestSuccess, but allows the caller to specify the file and line. | |
OpenClovis Test Infrastructure.