cpp-testing

Automate C++ testing workflows with GoogleTest and CTest in CMake.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/yd5768365-hue/caw-cli --skill cpp-testing-yd5768365-hue
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-testing
Source: https://github.com/yd5768365-hue/caw-cli/tree/main/everything-claude-code-main/everything-claude-code-main/docs/ja-JP/skills/cpp-testing
Command: npx skills add https://github.com/yd5768365-hue/caw-cli --skill cpp-testing-yd5768365-hue

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation, updating, and debugging of C++ tests, ensuring robust software quality through efficient testing workflows.

Core Features & Use Cases

  • Test Creation & Modification: Write new unit and integration tests or refactor existing ones.
  • Framework Integration: Set up GoogleTest and CTest within CMake projects.
  • Debugging & Diagnostics: Identify and fix failing or flaky tests, and add sanitizers for memory and thread issues.
  • Use Case: A developer needs to add comprehensive unit tests for a new C++ module, ensuring it meets quality standards before integration.

Quick Start

Create a new GoogleTest for the Calculator class in src/calculator.cpp.

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 a C++ project?

Set up GoogleTest with CMake by configuring CTest to discover and execute test binaries. This Skill automates that framework integration, ensuring your C++17/20 project builds and runs tests within the CMake system.

What is the best way to create unit tests for a new C++ class?

Create unit tests by writing new GoogleTest cases for your C++ classes. This Skill automates test creation and modification, allowing you to add comprehensive tests for new modules to ensure they meet quality standards before integration.

How do I debug failing or flaky C++ tests in my CI pipeline?

Debug failing or flaky C++ tests by diagnosing test failures and identifying root causes. This Skill helps you diagnose and fix flaky tests, and integrates sanitizers to catch memory and thread issues within your testing workflows.

Can I use sanitizers to diagnose memory and thread issues in C++ tests?

Use sanitizers to diagnose memory and thread issues by integrating them into your CMake build. This Skill configures sanitizers within your GoogleTest workflows to help identify and fix complex runtime problems during testing.

Does this testing workflow support C++17 and C++20 projects?

This testing workflow supports C++17 and C++20 projects. The Skill automates test creation, configuration, and diagnostics specifically for modern C++ standards within a CMake build system.