int main()

in gtest/example.cpp [16:27]


int main(int argc, char** argv) {
    ::testing::InitGoogleTest(&argc, argv);

    if (jetbrains::teamcity::underTeamcity()) {
        ::testing::TestEventListeners& listeners = ::testing::UnitTest::GetInstance()->listeners();
        // Add unique flowId parameter if you want to run test processes in parallel
        // See http://confluence.jetbrains.net/display/TCD6/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-MessageFlowId
        listeners.Append(new jetbrains::teamcity::TeamcityGoogleTestEventListener());
    }

    return RUN_ALL_TESTS();
}