Printing additional output in Google Test

后端 未结 4 1455
深忆病人
深忆病人 2020-12-28 12:48

I\'m using the googletest C++ testing framework. Normally the textual output of running a test looks like this:

[ RUN      ] MyTest.Fuzz
[       OK ] MyTest.Fuzz          


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-28 13:20

    Simply printing to stderr will work in the default test configuration.

    std::cerr << "[          ] random seed = " << random_seed << std::endl;
    

提交回复
热议问题