This guide outlines a comprehensive, agent-focused testing workflow for modern C++ (C++17/20) using GoogleTest and CMake/CTest. It teaches key concepts like the TDD cycle (Red-Green-Refactor), utilizing mocking (gmock) and fixtures for isolation, setting up robust CI/CD integration, and debugging complex issues using sanitizers (ASAN, TSAN) and coverage analysis. Use this when writing, updating, or ensuring the functional robustness of C++ codebases.