Skip to main content

GoogleTest

命令行参数

参数说明
--gtest_list_tests列出所有测试用例
-
--gtest_filter=FooTest.*执行 test suite FooTest 下所有的测试用例
--gtest_filter=FooTest.BarTest执行 FooTest.BarTest
--gtest_filter=FooTest.*-FooTest.BarTest执行 test suite FooTest 下所有的测试用例,但不包括 FooTest.BarTest
--gtest_filter=*Null*:*Constructor*执行所有名字包含 NullConstructor