cpp-testing

Configure CMake-based C++ projects for gtest unit testing and ASan diagnostics.

Updated Mar 21, 2026
One-click install
npx skills add https://github.com/dbrijesh/raep --skill cpp-testing-dbrijesh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-testing
Source: https://github.com/dbrijesh/raep/tree/main/templates/skills/cpp-testing
Command: npx skills add https://github.com/dbrijesh/raep --skill cpp-testing-dbrijesh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gtest, gmock, CMake, gtest_main, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The cpp-testing skill solves the challenges of C++ test management and automation, offering structured practices and tools to enhance code reliability.

Core Features & Use Cases

  • Structured Test Development: Supports writing and managing tests following best practices, with guidelines for unit, integration, and CI testing.
  • CMake/CTest Configuration: Facilitates the setup and maintenance of consistent testing environments and workflows.
  • Test Analysis & Improvement: Aids in debugging, diagnosing test failures, and adding coverage with sanitizers.

Quick Start

Configure your project's test setup by using this skill in the following steps: Run mkdir tests in the project root, execute pytest, and then configure the build with cmake -DUSE_TEST=ON .. to compile and link with the tests.

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 gtest with CMake for C++ unit testing?

Duplicate placeholder removed.

What is the best way to integrate TDD into a C++ CMake project?

Duplicate placeholder removed.

Can I use sanitizers like ASan to diagnose C++ test failures?

Duplicate placeholder removed.

Does this C++ testing workflow support both unit and integration tests?

Duplicate placeholder removed.

Why use gmock when configuring C++ test automation with gtest?

Duplicate placeholder removed.