What problem does it solve?
This Skill streamlines the process of writing, configuring, and debugging C++ tests, ensuring robust and reliable code through modern testing practices.
Core Features & Use Cases
- Test Development: Write new C++ unit and integration tests using GoogleTest/GoogleMock.
- Workflow Configuration: Set up CMake/CTest for consistent test execution and discovery.
- Debugging & Optimization: Diagnose failing tests, enable sanitizers (ASan, UBSan, TSan), and implement code coverage.
- Use Case: You've just implemented a new feature in your C++ application and need to write comprehensive unit tests for it, configure CMake to build and run them, and ensure they pass in your CI pipeline.
Quick Start
Use the cpp-testing skill to write a new GoogleTest for the calculate_sum function in src/calculator.cpp.