cpp-testing

Automate GoogleTest/CTest setup, execution, and diagnosis in CMake projects.

2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill cpp-testing-multiplex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cpp-testing
Source: https://github.com/multiplex-ai/muggle-ai-teams/tree/main/skills/cpp-testing
Command: npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill cpp-testing-multiplex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers ensure C++ tests are reliable, maintainable, and correctly configured with GoogleTest/CTest, enabling rapid diagnosis of failures and consistent coverage strategies.

Core Features & Use Cases

  • Writing, updating, and debugging C++ unit/integration tests using GoogleTest/GoogleMock and CMake/CTest.
  • Diagnosing failing or flaky tests, configuring sanitizers, and adding test coverage.
  • Integrating tests into CI pipelines with stable discovery and reporting.

Quick Start

To begin, describe your C++ testing task to set up or fix tests using GoogleTest/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 my C++ project?

Setting up GoogleTest with CMake and CTest involves configuring test discovery and linking the GoogleTest library to your C++ project to ensure deterministic test execution and reliable test suites.

How do I diagnose flaky C++ tests in my GoogleTest suite?

Diagnosing flaky C++ tests requires applying sanitizers and analyzing test execution behavior to identify non-deterministic runs, ensuring reliable test suites and stable CI gate validations across Linux and macOS environments.

Can I integrate sanitizer and test coverage reporting into my CTest CI pipeline?

Yes, you can integrate sanitizer and test coverage reporting into a CTest CI pipeline by configuring CMake-based project workflows to enrich test coverage and ensure reliable test suites across Linux and macOS environments.

What's the best way to ensure deterministic test runs in a C++ GoogleTest workflow?

Ensuring deterministic test runs in a C++ GoogleTest workflow requires proper test discovery configuration and stable execution strategies within CMake-based projects to achieve consistent and reliable test suite behavior.

Why does my CTest test discovery fail to find my GoogleTest cases?

CTest test discovery failures for GoogleTest cases often stem from improper CMake configuration, requiring correct test discovery setup to ensure all unit and integration tests are properly registered and executed.

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

Yes, this C++ testing workflow supports both unit and integration testing by automating the setup, execution, and diagnosis of tests using GoogleTest and CTest within CMake-based projects.