What problem does it solve?
This Skill eliminates the common pain points of inconsistent C++ test setups, flaky test failures, and missing test coverage for modern C++17/20 projects using GoogleTest and CMake/CTest.
Core Features & Use Cases
- TDD Workflow Guidance: Provides a clear red-green-refactor loop for writing reliable, maintainable C++ tests.
- GoogleTest/CTest Configuration: Includes ready-to-use CMake snippets for test discovery, coverage tracking, and sanitizer integration.
- Test Reliability & Debugging: Offers guardrails for fixing flaky tests, enabling memory and race sanitizers, and designing isolated, deterministic test cases.
- Use Case: A C++ developer building a high-performance trading engine can use this Skill to quickly set up a test suite, write unit tests for new pricing logic, and configure CI to run tests with AddressSanitizer to catch memory leaks.
Quick Start
Use the cpp-testing skill to write a GoogleTest unit test for your new C++ function and configure CMake to run it via CTest.