coding/cpp-testing/SKILL.md
C++ testing workflow for unit and integration tests: GoogleTest/GoogleMock, CMake/CTest integration, diagnosing flaky tests, and running sanitizers and coverage for correctness signal. Use when writing or fixing C++ tests and test infrastructure.
npx skillsauth add aeondave/malskill cpp-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
High-signal workflow for writing and maintaining reliable C++ tests.
ASSERT_* for preconditions, EXPECT_* for additional checks.test-driven-development when implementing persistent code or bug fixes test-first.testing-reliability for mock/timing anti-patterns and systematic-debugging when symptoms are far from the defect.ctest -R / gtest filter).Load on demand:
references/googletest-cmake.md — FetchContent + CTest discovery (gtest_discover_tests)references/test-design.md — unit vs integration, fixtures, parameterized testsreferences/sanitizers-coverage.md — ASan/UBSan/TSan + coverage recipesreferences/flakes-debugging.md — anti-flake rules, gdb/lldb, Valgrind, MinGW objdump/nm, MSVC dumpbin/WinDbg, sanitizer env varsdevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.