What problem does it solve? C++ test suites often suffer from flaky tests, inconsistent CMake/CTest configuration, missing coverage, and undetected memory or threading bugs. This Skill provides a structured workflow for writing, running, and hardening C++ tests with GoogleTest and GoogleMock. ## Core Features & Use Cases - TDD Workflow Guidance: Follows the red-green-refactor loop with concrete GoogleTest and GoogleMock code examples for unit tests, fixtures, and mocks. - CMake/CTest Configuration: Sets up test discovery with gtest_discover_tests(), coverage builds with lcov or llvm-cov, and sanitizer builds (ASan, UBSan, TSan). - Flaky Test Diagnosis: Provides guardrails against common pitfalls like fixed temp paths, wall-clock dependencies, and sleep-based synchronization. - Use Case: When a CI pipeline reports an intermittent test failure, use this Skill to isolate the failing test with gtest filters, re-run it under ThreadSanitizer, and apply deterministic synchronization fixes. ## Quick Start Ask the agent to write a GoogleTest unit test for a C++ function and configure CTest to run it with sanitizers enabled.