What problem does it solve?
This Skill eliminates the frustration of inconsistent C++ test implementations, flaky test failures, and missing test coverage for C++17/20 projects using GoogleTest and CMake/CTest, reducing debugging time and improving code reliability.
Core Features & Use Cases
- TDD Workflow Guidance: Step-by-step red-green-refactor loop tailored for C++ test development.
- Ready-to-Use Test Examples: Pre-written snippets for unit tests, fixtures, and mocks using GoogleTest and GoogleMock.
- CMake/CTest Configuration: Templates for stable test discovery and seamless CI integration.
- Diagnostic Tooling Setup: Instructions for enabling sanitizers and code coverage to catch memory, race, and coverage gaps early.
- Use Case: A developer adding tests for a new C++ networking module can use this Skill to quickly scaffold test fixtures, configure CTest to run tests in CI, and enable AddressSanitizer to catch memory leaks before release.
Quick Start
Use the cpp-testing skill to write a GoogleTest unit test for your new C++ utility function and configure CTest to automatically discover and run it in your CMake project.