Defines | |
#define | console_run_tests() CU_console_run_tests() |
Deprecated (version 1). | |
Enumerations | |
enum | STATUS { CONTINUE = 1, MOVE_UP, STOP } |
Console interface status flag. More... | |
Functions | |
void | CU_console_run_tests (void) |
Run registered CUnit tests using the console interface. | |
void | console_registry_level_run (CU_pTestRegistry pRegistry) |
Main loop for console interface. | |
STATUS | console_suite_level_run (CU_pSuite pSuite) |
Run a selected suite within the console interface. | |
CU_ErrorCode | console_run_all_tests (CU_pTestRegistry pRegistry) |
Run all tests within the console interface. | |
CU_ErrorCode | console_run_suite (CU_pSuite pSuite) |
Run a specified suite within the console interface. | |
CU_ErrorCode | console_run_single_test (CU_pSuite pSuite, CU_pTest pTest) |
Run a specific test for the specified suite within the console interface. | |
void | console_test_start_message_handler (const CU_pTest pTest, const CU_pSuite pSuite) |
Handler function called at start of each test. | |
void | console_test_complete_message_handler (const CU_pTest pTest, const CU_pSuite pSuite, const CU_pFailureRecord pFailure) |
Handler function called at completion of each test. | |
void | console_all_tests_complete_message_handler (const CU_pFailureRecord pFailure) |
Handler function called at completion of all tests in a suite. | |
void | console_suite_init_failure_message_handler (const CU_pSuite pSuite) |
Handler function called when suite initialization fails. | |
CU_ErrorCode | select_test (CU_pSuite pSuite, CU_pTest *pTest) |
Read the name of a test from standard input and locate the test having the specified name. | |
CU_ErrorCode | select_suite (CU_pTestRegistry pRegistry, CU_pSuite *pSuite) |
Read the name of a suite from standard input and locate the suite having the specified name. | |
void | list_suites (CU_pTestRegistry pRegistry) |
List the suites in a registry to standard output. | |
void | list_tests (CU_pSuite pSuite) |
List the tests in a suite to standard output. | |
void | show_failures (void) |
Display the record of test failures on standard output. | |
Variables | |
CU_pSuite | f_pRunningSuite = NULL |
currently running suite. |
|
Deprecated (version 1).
|
|
Console interface status flag.
|
|
Handler function called at completion of all tests in a suite.
|
|
Main loop for console interface. Displays actions and responds based on user imput.
|
|
Run all tests within the console interface. The test registry is changed to the specified registry before running the tests, and reset to the original registry when done.
|
|
Run a specific test for the specified suite within the console interface.
|
|
Run a specified suite within the console interface.
|
|
Handler function called when suite initialization fails.
|
|
Run a selected suite within the console interface. Displays actions and responds based on user imput.
|
|
Handler function called at completion of each test.
|
|
Handler function called at start of each test.
|
|
Run registered CUnit tests using the console interface.
|
|
List the suites in a registry to standard output.
|
|
List the tests in a suite to standard output.
|
|
Read the name of a suite from standard input and locate the suite having the specified name. The input string is used to locate the suite having the indicated name, which is returned in pSuite. ppSuite will be NULL if there is no suite registered in pRegistry having the input name. Returns NULL if the suite is successfully located, non-NULL otherwise.
|
|
Read the name of a test from standard input and locate the test having the specified name. A pointer to the located test is stored in pTest upon return.
|
|
Display the record of test failures on standard output.
|
|
currently running suite.
|