How do I get BOOST_TEST_MESSAGE to display on the screen?

后端 未结 1 2108
一个人的身影
一个人的身影 2021-02-13 22:36

I\'m fumbling my way through the Boost Unit Testing Framework and have set up a basic functioning unit test. I\'m using BOOST_TEST_MESSAGE to let the user know whic

相关标签:
1条回答
  • 2021-02-13 22:56

    As per the documentation:

    Messages generated by this tool do not appear in test log output with default value of the active log level threshold. For these messages to appear the active log level threshold has to be set to a value below or equal to "message".

    Either set the environment variable BOOST_TEST_LOG_LEVEL to message when running your test binary:

    BOOST_TEST_LOG_LEVEL=message <your_test>
    

    or pass the command line argument --log_level:

    <your_test> --log_level=message
    
    0 讨论(0)
提交回复
热议问题