Apr 23, 2025
TestCase to TestSuite.ASSERT_*: Causes fatal failure, aborts the current function.EXPECT_*: Causes nonfatal failure, allows function continuation.<< operator.TEST() macro:
TEST(TestSuiteName, TestName) { ... }TEST().testing::Test.SetUp() for pre-test configuration.TearDown() for post-test cleanup.TEST_F() to create tests with fixtures.RUN_ALL_TESTS().0 if successful, 1 otherwise.main() Functionmain().InitGoogleTest() and RUN_ALL_TESTS() for custom setup.main() implementation.pthreads library.