Install any skill in seconds. Free to start, no credit card required.
Get Started Free →xu-xiang/cpp-testing
仅在编写/更新/修复 C++ 测试、配置 GoogleTest/CTest、诊断失败或不稳定的测试、或添加覆盖率/检测器(Sanitizers)时使用。
Passed 0 of 23 test cases with the skill, and 23 of 23 without it.
1 fixed18 passed either way1 still failing3 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
After running lcov --capture on a C++ build, the raw coverage.info file contains line coverage for system headers in /usr/include. What lcov command removes system header paths from the coverage file?
| Checked | Without skill | With skill |
|---|---|---|
| Uses lcov --remove coverage.info '/usr/*' --output-file coverage.info. | Missed | Passed |
The instructions your model reads when the skill loads.
针对现代 C++(C++17/20)的代理导向测试工作流,使用 GoogleTest/GoogleMock 和 CMake/CTest。
tests/unit、tests/integration、tests/testdata。gtest_discover_tests() 进行稳定的测试发现。--output-on-failure 运行完整套件。遵循 RED → GREEN → REFACTOR 循环:
// tests/add_test.cpp
#include <gtest/gtest.h>
test cases passed, vs 23 / 23 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.