cpp-testing

Configure GoogleTest/CTest workflows to fix failing or flaky C++ tests.

1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill cpp-testing-rolled740
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-testing
Source: https://github.com/ROLLED740/vibe-clone-pro/tree/main/.agent/skills/cpp-testing
Command: npx skills add https://github.com/ROLLED740/vibe-clone-pro --skill cpp-testing-rolled740

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams manage and stabilize C++ test suites by guiding the setup, execution, and maintenance of tests using GoogleTest/GoogleMock and CMake/CTest, enabling reliable test results and easier debugging.

Core Features & Use Cases

  • Write, update, and diagnose unit and integration tests for C++ projects using GoogleTest/GoogleMock.
  • Configure CMake/CTest workflows, test discovery, coverage reporting, and sanitizers to catch memory and concurrency issues early.
  • Support CI integration and regression protection across platforms and compiler versions.

Quick Start

Run the skill to bootstrap a GoogleTest/CTest workflow for a C++ project and generate a ready-to-run test suite.

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 and CTest for a C++ project using CMake?

Setting up GoogleTest and CTest involves configuring CMake to discover and execute test binaries, enabling reliable unit and integration test execution. This skill guides that workflow setup to generate a ready-to-run test suite.

Why does my C++ test suite fail in CI but pass locally, and how can I fix it?

Failing or flaky C++ test suites in CI can stem from platform or compiler differences. This skill helps identify and fix these issues by stabilizing GoogleTest/CTest workflows and adding regression protection across environments.

Can I use sanitizers with CMake and CTest to catch memory issues in C++ tests?

Yes, you can configure sanitizers within your CMake and CTest workflow to catch memory and concurrency issues early. This skill supports adding sanitizer configurations alongside your GoogleTest setup.

What is the best way to add coverage reporting to a GoogleTest workflow in C++?

Adding coverage reporting to a GoogleTest workflow requires configuring CMake and CTest to collect and generate coverage data during test execution. This skill guides you through setting up coverage reporting and CI integration.

Do I need GoogleMock to write integration tests for my C++ project?

GoogleMock is used alongside GoogleTest to write, update, and diagnose unit and integration tests by mocking interfaces. This skill supports configuring both GoogleTest and GoogleMock within your CMake project.

How does CTest test discovery work with GoogleTest when running C++ tests across platforms?

CTest test discovery with GoogleTest integrates test execution into CMake workflows, allowing tests to run across different platforms and compiler versions. This skill configures CTest discovery for reliable CI integration and regression protection.