Previous: C unit testing API, Up: Unit testing
All of the methods that take a msg
parameter use a C char * or
STL string, that is the message to be displayed. There currently is no
support for variable length arguments.
pass
prints a message for a successful test completion.
TestState::pass(msg);
fail
prints a message for an unsuccessful test completion.
TestState::fail(msg);
untested
prints a message for an test case that isn’t run for
some reason.
TestState::untested(msg);
unresolved
prints a message for an test case that is run, but
there is no clear result. These output states require a human to look
over the results to determine what happened.
TestState::unresolved(msg);
totals
prints out the total numbers of all the test state
outputs.
TestState::totals();