FreeNOS
|
Generic test framework with support for assertions, automatic test discovery and test reporting. More...
Data Structures | |
class | DirectoryScanner |
Scan directory for automated tests. More... | |
class | ExternalTest |
Represents external test program. More... | |
class | LocalTest |
Represents test inside the same process. More... | |
class | StdoutReporter |
Output TestResults to standard output. More... | |
class | TAPReporter |
Output TestResults in TAP format to stdout. More... | |
class | TestChar< T > |
Generate test data for character strings. More... | |
class | TestData< T > |
Generate test data for a certain data type. More... | |
class | TestInstance |
Represents a test instance. More... | |
class | TestInt< T > |
Generate test data for integers. More... | |
class | TestReporter |
Responsible for outputting test results. More... | |
class | TestResult |
Represents a Test result created by a TestInstance. More... | |
class | TestRunner |
Reponsible for discovering and running tests. More... | |
class | TestSuite |
Maintains a list of test instances. More... | |
class | XMLReporter |
Output TestResults to standard output in XML format. More... | |
Macros | |
#define | private public |
Redefine private as public for accessing class members in testcases. More... | |
#define | protected public |
#define | TestCase(name) |
#define | testAssert(expression) |
Test if the given expression is true and return NOK otherwise. More... | |
#define | testString(s1, s2) testAssert(MemoryBlock::compare((s1), (s2))) |
Test if the given character strings are equal. More... | |
Typedefs | |
typedef TestResult | TestFunction(void) |
Functions | |
int | main (int argc, char **argv) |
Default test program main function. More... | |
TestResult macros | |
#define | OK TestResult( TestResult::Success ) |
#define | FAIL TestResult( TestResult::Failure ) |
#define | SKIP TestResult( TestResult::Skipped ) |
Generic test framework with support for assertions, automatic test discovery and test reporting.
#define FAIL TestResult( TestResult::Failure ) |
Definition at line 37 of file TestResult.h.
#define OK TestResult( TestResult::Success ) |
Definition at line 36 of file TestResult.h.
#define private public |
Redefine private as public for accessing class members in testcases.
Testcases sometimes need to access private members of a class. This define makes sure that a TestCase can access the private members.
Definition at line 38 of file TestCase.h.
#define protected public |
Definition at line 43 of file TestCase.h.
#define SKIP TestResult( TestResult::Skipped ) |
Definition at line 38 of file TestResult.h.
#define testAssert | ( | expression | ) |
Test if the given expression is true and return NOK otherwise.
expression | The expression to test against |
Definition at line 64 of file TestCase.h.
#define TestCase | ( | name | ) |
Definition at line 52 of file TestCase.h.
#define testString | ( | s1, | |
s2 | |||
) | testAssert(MemoryBlock::compare((s1), (s2))) |
Test if the given character strings are equal.
Definition at line 75 of file TestCase.h.
typedef TestResult TestFunction(void) |
Definition at line 31 of file LocalTest.h.
int main | ( | int | argc, |
char ** | argv | ||
) |
Default test program main function.
Program entry point.
Definition at line 41 of file TestMain.h.
References TestRunner::run().