SKILL

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest, diagnosing failing or flaky tests, or adding coverage/sanitizers.

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • C++ Testing (Agent Skill)
  • When to Use
  • When NOT to Use
  • Core Concepts
  • TDD Workflow
  • Code Examples
  • Basic Unit Test (gtest)
  • Fixture (gtest)

Agent-focused testing workflow for modern C++ (C++17/20) using GoogleTest/GoogleMock with CMake/CTest. Writing new C++ tests or fixing existing tests Designing unit/integration test coverage for C++ components Adding test coverage, CI gating, or regression protection Configuring CMake/CTest workflows for consistent execution Investigating test failures or flaky behavior Enabling sanitizers for memory/race diagnostics Implementing new product features without test changes Large-scale refactors unrelated to test coverage or failures Performance tuning without test regressions to validate Non-C++ projects or non-test tasks TDD loop: red → green → refactor (tests first, minimal fix, then cleanups). Isolation: prefer dependency injection and fakes over global state. Test layout: tests/unit, tests/integration, tests/testdata. Mocks vs fakes: mock for interactions, fake for stateful behavior. CTest discovery: use gtestdiscovertests() for stable test discovery. CI signal: run subset first, then full suite with --output-on-failure. Follow the RED → GREEN → REFACTOR loop: 1. RED: write a failing test that captures the new behavior 2. GREEN: implement the smallest change to pass 3. REFACTOR:

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
.kiro/skills/cpp-testing/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.556Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.