Enumerations | |
enum | CU_BasicRunMode { CU_BRM_NORMAL = 0, CU_BRM_SILENT, CU_BRM_VERBOSE } |
Run modes for the basic interface. More... | |
Functions | |
CU_ErrorCode | CU_basic_run_tests (void) |
Run all registered CUnit tests using the basic interface. | |
CU_ErrorCode | CU_basic_run_suite (CU_pSuite pSuite) |
Run all tests for a specific suite in the basic interface. | |
CU_ErrorCode | CU_basic_run_test (CU_pSuite pSuite, CU_pTest pTest) |
Run a single test in a specific suite in the basic interface. | |
void | CU_basic_set_mode (CU_BasicRunMode mode) |
Set the run mode for the basic interface. | |
CU_BasicRunMode | CU_basic_get_mode (void) |
Retrieve the current run mode for the basic interface. | |
void | CU_basic_show_failures (CU_pFailureRecord pFailure) |
Print a summary of run failures to stdout. | |
CU_ErrorCode | basic_initialize (void) |
Perform inialization actions for the basic interface. | |
CU_ErrorCode | basic_run_all_tests (CU_pTestRegistry pRegistry) |
Run all tests within the basic interface. | |
CU_ErrorCode | basic_run_suite (CU_pSuite pSuite) |
Run a specified suite within the basic interface. | |
CU_ErrorCode | basic_run_single_test (CU_pSuite pSuite, CU_pTest pTest) |
Run a single test for the specified suite within the console interface. | |
void | basic_test_start_message_handler (const CU_pTest pTest, const CU_pSuite pSuite) |
Handler function called at start of each test. | |
void | basic_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 | basic_all_tests_complete_message_handler (const CU_pFailureRecord pFailure) |
Handler function called at completion of all tests in a suite. | |
void | basic_suite_init_failure_message_handler (const CU_pSuite pSuite) |
Handler function called when suite initialization fails. | |
Variables | |
CU_pSuite | f_pRunningSuite = NULL |
Name of currently running suite. | |
CU_BasicRunMode | f_run_mode = CU_BRM_NORMAL |
|
Run modes for the basic interface.
|
|
Handler function called at completion of all tests in a suite.
|
|
Perform inialization actions for the basic interface. This includes setting output to unbuffered, printing a welcome message, and setting the test run handlers.
|
|
Run all tests within the basic interface. The test registry is changed to the specified registry before running the tests, and reset to the original registry when done.
|
|
Run a single test for the specified suite within the console interface.
|
|
Run a specified suite within the basic interface.
|
|
Handler function called when suite initialization fails.
|
|
Handler function called at completion of each test.
|
|
Handler function called at start of each test.
|
|
Retrieve the current run mode for the basic interface.
|
|
Run all tests for a specific suite in the basic interface. If pSuite is NULL, the function returns without taking any action. The default CU_BasicRunMode is used unless it has been changed using CU_basic_set_mode().
|
|
Run a single test in a specific suite in the basic interface. If pSuite or pTest is NULL, the function returns without taking any action. The default CU_BasicRunMode is used unless it has been changed using CU_basic_set_mode.
|
|
Run all registered CUnit tests using the basic interface. The default CU_BasicRunMode is used unless it has been previously changed using CU_basic_set_mode().
|
|
Set the run mode for the basic interface.
|
|
Print a summary of run failures to stdout. This is provided for user convenience upon request, and does not take into account the current run mode. The failures are printed to stdout independent of the most recent run mode.
|
|
Name of currently running suite.
|
|
|