I use Google C++ Testing Framework for unit testing of my code. I use Eclipse CDT with C++ Unit testing module for output analysis.
Previously I used CppUnit it ha
From the Advanced googletest Topics you can use a few macros for that purpose.
SUCCEED() << "success/info message";
SUCCEED() only outputs your message and proceeds. It does not mark test as passed. Its result will be determined by the following asserts.FAIL() << "test failure message";
FAIL() marks your test as failed, outputs your message and then returns from the function. Therefore can only be used in functions returning void.ADD_FAILURE() << "test failure message";
ADD_FAILURE() marks your test as failed and outputs your message. It does not return from the calling function and execution flow continues like with EXPECT_ series of macros.