Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Cpp Testing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-cpp-testing)
---
name: cpp-testing
description: "Write and fix tests in C++: googleTest or Catch2 with CTest, mocking at boundaries, async tests and CI settings."
tags: [cpp, testing]
---
# Cpp Testing
## When to use
- Writing or reviewing C++ tests
- Setting up a test suite
- Fixing slow or flaky tests
## Procedure
1. GoogleTest or Catch2 with CTest
2. Fixtures for setup
3. Run tests under AddressSanitizer and UndefinedBehaviorSanitizer
4. Fuzz parsers with libFuzzer
## Checklist
- [ ] Sanitizer builds in CI
- [ ] Death tests for invariants
## Anti-patterns
- Tests that depend on uninitialised memory or timing