The macro expects a string that is the name of the test suite.
这个宏需要一个字符串作为测试套件的名称。
Just making a call to the predefined RUN_ALL_TESTS macro does the trick, as opposed to creating or deriving a separate runner class for test execution.
只需调用预定义的run_all_tests宏,而不需要通过创建或驱动单独的运行器类来执行测试。
Each test suite (for example, ts1 in Listing 17) is created by using the macro BOOST_TEST_SUITE.
每个测试套件(比如清单17中的ts1)都是使用BOOST _ test_suite宏创建的。
应用推荐