What problem does it solve? Writing reliable C++ tests requires choosing the right framework, mocking strategy, and build configuration, and mistakes lead to flaky tests, missed edge cases, and undetected memory or concurrency bugs. This Skill provides a structured workflow for designing, generating, and verifying C++ test suites. ## Core Features & Use Cases - Test Generation with GoogleTest/GoogleMock: Produces unit tests, fixtures, and mocks following a phased protocol covering context analysis, strategy selection, and edge-case design. - CMake/CTest Integration: Configures test discovery with gtest_discover_tests, coverage builds with gcov/lcov or llvm-cov, and sanitizer builds (ASan, UBSan, TSan). - Failure Diagnosis & Flaky Test Guardrails: Guides debugging of failing tests and enforces deterministic patterns like condition variables instead of sleeps. - Use Case: When asked to add tests for a C++ class with external dependencies, the Skill analyzes the code, decides between mocks and fakes, generates the test file, and provides the exact ctest commands to run it. ## Quick Start Ask the agent to write GoogleTest unit tests with mocks for a specific C++ class and provide the ctest command to run them.