In gtest main, when using
int main(int argc, char **argv)
{
    printf("Running tests\n");
    testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}
It always run all the tests.
Is there a way to run some specific tests?
In gtest main, when using
int main(int argc, char **argv)
{
    printf("Running tests\n");
    testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}
It always run all the tests.
Is there a way to run some specific tests?
First, you don't need to write a main() for gtest. You can just link with gtest_main library as well as gtest library. It is pretty similar to what you have, though.
Second, to run a specific test, please refer to advanced options.