What problem does it solve?
Writing, maintaining, and diagnosing C++ tests across modern codebases can be error-prone and slow without a structured workflow. This skill provides a cohesive approach to organizing tests using GoogleTest/GoogleMock with CMake/CTest, enabling reliable builds, clearer test reports, and smoother CI integration.
Core Features & Use Cases
- Unit and integration testing for C++17/20 projects using GoogleTest/GoogleMock.
- Fixture and mock support for isolating components and validating interactions.
- CI-ready workflows with CTest discovery and deterministic test execution across platforms.
- Guidance on sanitizers and coverage to improve test quality and diagnostics.
Quick Start
Begin by configuring your CMake project to build tests with GoogleTest/CTest, integrate mocks as needed, and run the test suite to validate changes.