What problem does it solve?
C++ testing workflows are often inconsistent, with fragmented setup for GoogleTest/CTest, unreliable detection of failing or flaky tests, and missing integration for code coverage and sanitizers that slows development and reduces code reliability.
Core Features & Use Cases
- End-to-end TDD support: Guides the full red-green-refactor loop for writing, fixing, and refactoring C++ tests.
- CMake/CTest configuration: Provides templates and best practices for consistent test discovery and CI execution.
- Diagnostics and guardrails: Includes workflows for debugging failing tests, adding code coverage, enabling memory/race sanitizers, and preventing flaky test behavior.
- Use case: For a team struggling with intermittent test failures in a C++20 codebase, use this skill to configure sanitizers, isolate flaky tests, and set up CI gating to block regressions.
Quick Start
Use the cpp-testing skill to configure GoogleTest with CMake, write a passing unit test for your C++ add function, and set up CTest to run the test suite with AddressSanitizer enabled in your CI pipeline.