What problem does it solve?
This Skill reduces the time and uncertainty spent diagnosing failing or flaky C++ tests, configuring reproducible CMake/CTest pipelines, and adding coverage or sanitizer-based diagnostics so teams can quickly find and fix regressions.
Core Features & Use Cases
- Test diagnosis: guidance on rerunning failing tests, using gtest filters, and isolating flaky behavior.
- CMake/CTest integration: best practices for gtest_discover_tests, target-scoped test targets, and CI-friendly execution.
- Coverage & sanitizers: instructions for enabling GCC/Clang coverage builds and ASan/UBSan/TSan configurations for CI.
- TDD & test layout: recommended red→green→refactor workflow, test directory conventions, fixtures, and mock vs fake guidance.
- Use Case: reproduce a flaky unit test locally with sanitizers enabled, isolate the cause, and add deterministic seeds or fixes before merging.
Quick Start
Run the failing test locally with ctest or the gtest filter in a Debug build with sanitizers enabled to reproduce and investigate the failure.