cyberneticlibrary

Write and debug C++ tests

cpp-testingskillsetup L20
Sheshiyer/skill-clusters
What it does

Author and execute C++ unit/integration tests with GoogleTest and CTest

Best for

TDD workflows and regression protection in C++ projects

Inputs
  • · C++ source code
  • · test specifications
Outputs
  • · test executables
  • · coverage reports
  • · test result logs
Requires
  • · GoogleTest
  • · GoogleMock
  • · CMake
  • · CTest
  • · sanitizers
Preconditions

CMake build system; C++17 compiler

Failure modes

Flaky tests; test isolation broken; sanitizers misonfigured

Trust signals
  • · RED-GREEN-REFACTOR cycle documented
  • · mock vs fake distinction
  • · CTest discovery patterns