What problem does it solve?
This skill helps you diagnose and repair failing or flaky C++ tests by providing an end-to-end, reproducible workflow for GoogleTest/GoogleMock integrated with CMake/CTest.
Core Features & Use Cases
- Failure triage and stabilization: isolate the failing test, reproduce with filters, and reduce nondeterminism sources that cause flakiness.
- Consistent CMake/CTest setup: configure deterministic test discovery (including gtest_discover_tests) and CI-friendly execution.
- Quality signals: enable sanitizers (ASAN/UBSAN/TSAN) and add coverage instrumentation to find memory, concurrency, and untested paths.
- When to use: unit/integration test authoring, regression protection, and debugging unreliable test behavior in modern C++ (C++17/20).
Quick Start
Use the cpp-testing skill to configure your CMake/CTest test discovery and then rerun only the failing GoogleTest(s) with --output-on-failure until the underlying issue is fixed.