Skip to main content
Run any Skill in Manus
with one click

cpp-testing

Stars2
Forks0
UpdatedJuly 9, 2026 at 00:38

Testing workflow for modern C++ (C++17/20) with GoogleTest / GoogleMock driven through CMake and CTest. Covers the red-green-refactor loop, unit and integration test layout, fixtures, mocks vs fakes, dependency injection for isolation, stable test discovery with gtest_discover_tests, coverage collection (gcov/lcov and llvm-cov), the AddressSanitizer / UBSan / ThreadSanitizer builds, and guardrails that keep tests deterministic and non-flaky. Use when writing or fixing C++ tests, wiring a CMake/CTest test target, diagnosing a failing or flaky test, or adding coverage or sanitizer gates. Not for feature work with no test change, large refactors unrelated to tests, or non-C++ projects.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly