cpp-testing

Automate C++ testing workflows with GoogleTest/CTest in CMake projects.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/sakamoto-family-smile/agent_monorepo --skill cpp-testing-sakamoto-family-smile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-testing
Source: https://github.com/sakamoto-family-smile/agent_monorepo/tree/main/.claude/skills/ecc/cpp-testing
Command: npx skills add https://github.com/sakamoto-family-smile/agent_monorepo --skill cpp-testing-sakamoto-family-smile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the setup and execution of C++ tests in modern projects, providing a repeatable framework for unit and integration tests with rapid feedback.

Core Features & Use Cases

  • TDD-driven testing: supports red-green-refactor cycles with GoogleTest/CTest.
  • CI-friendly practices: integrates with CMake/CTest, test discovery, fixtures, and sanitizer configurations.
  • Scalable for real-world codebases: works with unit and integration tests, mocks, and fixtures in large C++ projects.

Quick Start

Create or adapt a CMake project to enable GoogleTest/CTest and run the test suite with CTest.

Frequently Asked Questions about cpp-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up GoogleTest with CMake and CTest for C++ unit testing?

Set up GoogleTest with CMake by configuring CTest integration for automated test discovery and fixtures. This C++ testing workflow enables deterministic execution of unit and integration tests within CMake-based codebases, supporting rapid feedback loops.

What is the best way to automate C++ test execution in a CI pipeline?

Automate C++ test execution in CI by integrating CTest for test discovery and gating. This approach configures sanitizers and structured testing workflows to ensure deterministic test execution across unit and integration suites.

Can I use GoogleMock and test fixtures for integration tests in large C++ projects?

Yes, you can use GoogleMock and test fixtures for integration tests in large C++ projects. The workflow supports scalable test configurations with CMake and CTest, enabling deterministic execution across complex codebases.

How do sanitizers work with CTest during C++ test automation?

Sanitizers work with CTest by configuring CMake to enable deterministic test execution with memory and undefined behavior checks. This C++ test automation setup catches runtime errors during unit and integration test runs.

Does CMake test discovery support TDD red-green-refactor cycles for C++?

CMake test discovery supports TDD red-green-refactor cycles by automating GoogleTest execution through CTest. This C++ testing workflow provides rapid, repeatable feedback for unit and integration tests during development.