What problem does it solve?
Provides a focused workflow and guidance to write, repair, and stabilize unit and integration tests for modern C++ projects, reducing time spent on flaky failures, CI regressions, and inconsistent test discovery.
Core Features & Use Cases
- Test authoring: Guidance for creating GoogleTest/GoogleMock unit and integration tests and organizing them under tests/unit and tests/integration.
- Build and CI integration: Instructions to configure CMake targets, use gtest_discover_tests, and gate test runs in CI with reliable failure output.
- Debugging & hardening: Steps to reproduce failures, enable sanitizers (ASan/UBSan/TSan), and add coverage collection with gcov/lcov or llvm-cov.
- Flakiness mitigation: Best practices for isolating tests, using deterministic seeds, unique temp dirs, and avoiding sleep-based synchronization.
Quick Start
Use cpp-testing to write a GoogleTest for the failing function, add a test target and gtest_discover_tests to CMakeLists.txt, build with CMake, and run the test with ctest --output-on-failure.