What problem does it solve? Writing reliable C++ tests is hard: flaky tests, misconfigured CMake/CTest setups, missing coverage, and undetected memory or threading bugs slow down development. This Skill provides a structured TDD workflow and ready-to-use configurations for GoogleTest/GoogleMock with CMake and CTest. ## Core Features & Use Cases - TDD Workflow Guidance: Follows the red-green-refactor loop with concrete gtest, fixture, and gmock code examples. - Build & Test Configuration: Provides CMake snippets for FetchContent-based GoogleTest integration, gtest_discover_tests, coverage flags (GCC/lcov and Clang/llvm-cov), and ASan/UBSan/TSan sanitizers. - Flaky Test Diagnosis: Offers guardrails against common pitfalls like sleeps, fixed temp paths, wall-clock dependencies, and hidden global state. - Use Case: You inherit a C++ project with failing tests. Use this Skill to isolate the failing test with gtest filters, re-run under AddressSanitizer to find a memory bug, then add a regression test and wire coverage reporting into CI. ## Quick Start Ask the assistant to write a GoogleTest unit test with a CMake/CTest setup for your C++ class, or to diagnose a specific failing or flaky test.