常见
#include <gtest/gtest.h>
int main(int argc, char **argv)
{
// testing::GTEST_FLAG(output) = "xml:";
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST(test_suite_name, test_case_name)
{
}
命令
--gtest_list_tests
--gtest_filter=<test_suite_name>.<test_case_name>
--gtest_output xml:<output directory> | <file path>