What problem does it solve?
This Skill streamlines the process of writing, debugging, and maintaining reliable unit and integration tests for C++ projects, ensuring code correctness and stability.
Core Features & Use Cases
- Test Framework Integration: Seamlessly integrate GoogleTest and GoogleMock with CMake and CTest build systems.
- Debugging & Diagnostics: Efficiently diagnose and fix flaky tests, memory errors, undefined behavior, and race conditions using sanitizers and debugging tools.
- Coverage Analysis: Generate code coverage reports to identify untested code paths.
- Use Case: When a C++ application fails its test suite due to a suspected memory leak, this Skill can be activated to run tests with AddressSanitizer enabled and guide the debugging process using GDB.
Quick Start
Activate this skill to help write a new unit test for the calculate_sum function in math_utils.cpp using GoogleTest and CMake.