Lhaz
|
関数 | |
WINUNIT_LOGGER_FUNCTION (void, Initialize)(const wchar_t *initializationString) | |
< String for initializing this logger. | |
WINUNIT_LOGGER_FUNCTION (void, OutputTestExecutableNamePreTest)(const wchar_t *fullPath | |
WINUNIT_LOGGER_FUNCTION (void, OutputTestExecutableNamePostTest)(const wchar_t *fullPath | |
WINUNIT_LOGGER_FUNCTION (void, OutputTestNamePreTest)(const char *testName) | |
< Name of test about to be run. | |
WINUNIT_LOGGER_FUNCTION (void, OutputTestNamePostTest)(const char *testName | |
WINUNIT_LOGGER_FUNCTION (void, OutputTrace)(const wchar_t *message) | |
< Informational message to be output. | |
WINUNIT_LOGGER_FUNCTION (void, OutputTestError)(const wchar_t *message) | |
< Message indicating details about failure. | |
WINUNIT_LOGGER_FUNCTION (void, OutputProgramErrorLine)(const wchar_t *message) | |
WINUNIT_LOGGER_FUNCTION (void, OutputFinalResults)(unsigned int succeeded | |
WINUNIT_LOGGER_FUNCTION (void, SetVerbosity)(unsigned int verbosity) | |
変数 | |
const wchar_t * | nameOfExecutable |
< Full path to the executable whose tests are to be run. | |
const wchar_t unsigned int | succeeded |
Number of tests succeeded. | |
const wchar_t unsigned int unsigned int | totalRun |
< Number of tests run. | |
bool | passed |
< Name of test that was just run. | |
To implement a custom logger, create a DLL that implements and exports one or more of the following functions. A very simple example would be a logger that writes out the results the end of a test run, to stdout if no failures, and to stderr if there were failures.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
Initialize | |||
) | const |
< String for initializing this logger.
Initialize the logger with any required data.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputFinalResults | |||
) |
Output final results from all tests run.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputProgramErrorLine | |||
) | const |
Output an error message that describes an unexpected occurrence in the program (e.g. file not found).
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTestError | |||
) | const |
< Message indicating details about failure.
Output a message from a failed test.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTestExecutableNamePostTest | |||
) | const |
Outputs the full path and just the name of the executable tests are being run from, after running the tests.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTestExecutableNamePreTest | |||
) | const |
Outputs the full path and just the name of the executable tests are being run from, before running the tests.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTestNamePostTest | |||
) | const |
Outputs the name of the test after it has been run, and whether or not it passed.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTestNamePreTest | |||
) | const |
< Name of test about to be run.
Outputs the name of the test about to be run.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
OutputTrace | |||
) | const |
< Informational message to be output.
Output a trace message. This comes from any OutputDebugString calls that have been made in the test executable.
WINUNIT_LOGGER_FUNCTION | ( | void | , |
SetVerbosity | |||
) |
Set verbosity level.
const wchar_t * nameOfExecutable |
< Full path to the executable whose tests are to be run.
< Full path to the executable whose tests were run.
< Name of executable.
Name of executable.
bool passed |
< Name of test that was just run.
< True if test passed.
const wchar_t unsigned int succeeded |
Number of tests succeeded.
unsigned int totalRun |
< Number of tests run.
< Total number of tests that succeeded.
< Total number of tests that were run.