How to send custom message in Google C++ Testing Framework?

后端 未结 6 1756
闹比i
闹比i 2020-12-22 20:59

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

6条回答
  •  甜味超标
    2020-12-22 21:39

    The gtest macros return a stream for outputting diagnostic messages when a test fails.

    EXPECT_TRUE(false) << "diagnostic message";
    

提交回复
热议问题