Defines | |
#define | automated_run_tests() CU_automated_run_tests() |
Deprecated (version 1). | |
#define | set_output_filename(x) CU_set_output_filename((x)) |
Deprecated (version 1). | |
Functions | |
void | CU_automated_run_tests (void) |
Run CUnit tests using the automated interface. | |
CU_ErrorCode | CU_list_tests_to_file (void) |
Generate an xml file containing a list of all tests in all suites in the active registry. | |
void | CU_set_output_filename (const char *szFilenameRoot) |
Set the root file name for automated test output files. | |
CU_ErrorCode | automated_list_all_tests (CU_pTestRegistry pRegistry, const char *szFilename) |
Generate an xml listing of all tests in all suites for the specified test registry. | |
CU_ErrorCode | initialize_result_file (const char *szFilename) |
Initialize the test results file generated by the automated interface. | |
CU_ErrorCode | uninitialize_result_file (void) |
Finalize and close the results output file generated by the automated interface. | |
void | automated_run_all_tests (CU_pTestRegistry pRegistry) |
Run the registered tests using the automated interface. | |
void | automated_test_start_message_handler (const CU_pTest pTest, const CU_pSuite pSuite) |
Handler function called at start of each test. | |
void | automated_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 | automated_all_tests_complete_message_handler (const CU_pFailureRecord pFailure) |
Handler function called at completion of all tests in a suite. | |
void | automated_suite_init_failure_message_handler (const CU_pSuite pSuite) |
Handler function called when suite initialization fails. | |
Variables | |
CU_pSuite | f_pRunningSuite = NULL |
The running test suite. | |
char | f_szDefaultFileRoot [] = "CUnitAutomated" |
Default filename root for automated output files. | |
char | f_szTestListFileName [FILENAME_MAX] = "" |
Current output file name for the test listing file. | |
char | f_szTestResultFileName [FILENAME_MAX] = "" |
Current output file name for the test results file. | |
FILE * | f_pTestResultFile = NULL |
FILE pointer the test results file. | |
BOOL | f_bWriting_CUNIT_RUN_SUITE = FALSE |
Flag for keeping track of when a closing xml tag is required. |
|
Deprecated (version 1).
|
|
Deprecated (version 1).
|
|
Handler function called at completion of all tests in a suite.
|
|
Generate an xml listing of all tests in all suites for the specified test registry. The output is directed to a file having the specified name.
|
|
Run the registered tests using the automated interface. The specified registry is set as the active registry if it is not already. The actual test running is performed by CU_run_all_tests().
|
|
Handler function called when suite initialization fails.
|
|
Handler function called at completion of each test.
|
|
Handler function called at start of each test.
|
|
Run CUnit tests using the automated interface. This functions sets appropriate callback functions, initializes the test output files, and calls the appropriate functions to list the tests and run them. If an output file name root has not been specified using CU_set_output_filename(), a generic root will be applied. |
|
Generate an xml file containing a list of all tests in all suites in the active registry. The output file will be named according to the most recent call to CU_set_output_filename(), or a default if not previously set.
|
|
Set the root file name for automated test output files. The strings "-Listing.xml" and "-Results.xml" are appended to the specified root to generate the filenames. If szFilename is empty, the function has no effect.
|
|
Initialize the test results file generated by the automated interface. A file stream is opened and header information is written. |
|
Finalize and close the results output file generated by the automated interface.
|
|
Flag for keeping track of when a closing xml tag is required.
|
|
The running test suite.
|
|
FILE pointer the test results file.
|
|
Default filename root for automated output files.
|
|
Current output file name for the test listing file.
|
|
Current output file name for the test results file.
|