CUnit Progammers Guide |
||
---|---|---|
Prev | Home | Next |
Header File | Description |
---|---|
#include <CUnit/CUnit.h> | ASSERT macros for use in test cases, and includes other framework headers. |
#include <CUnit/CUError.h> | Error handing functions and data types. Included automatically by CUnit.h. |
#include <CUnit/TestDB.h> | Data type definitions and manipulation functions for the test registry, suites, and tests. Included automatically by CUnit.h. |
#include <CUnit/TestRun.h> | Data type definitions and functions for running tests and retrieving results. Included automatically by CUnit.h. |
#include <CUnit/Automated.h> | Automated interface with xml output. |
#include <CUnit/Basic.h> | Basic interface with non-interactive output to stdout. |
#include <CUnit/Console.h> | Interactive console interface. |
#include <CUnit/CUCurses.h> | Interactive console interface (*nix). |
#include <CUnit/Win.h> | Windows interface (not yet implemented). |
Test Registry | ------------------------------ | | Suite '1' . . . . Suite 'N' | | --------------- --------------- | | | | Test '11' ... Test '1M' Test 'N1' ... Test 'NM'Individual test cases are packaged into suites, which are registered with the active test registry. Suites can have setup and teardown functions which are automatically called before and after running the suite's tests. All suites/tests in the registry may be run using a single function call, or selected suites or tests can be run.