add-unit-test
Installation
SKILL.md
Add Unit Test
Workflow
-
Inspect the production code and the nearest existing tests before writing a new test.
- Match the production path under
xllm/totests/where possible. - Prefer extending an existing nearby
*_test.cppandcc_testtarget when the behavior belongs to the same domain. - Create a new test source only when it improves isolation, keeps platform setup separate, or follows an existing directory pattern.
- Match the production path under
-
Read the project style guide before editing production files under
xllm/, and apply the same C++ style discipline to new test code:.agents/skills/code-review/references/custom-code-style.md. -
Follow the current test layout and CMake conventions.
- Read xllm-test-patterns.md when adding a new test file, new
cc_test, platform-specific test, or test directory. - Use
*_test.cppfor C++ test files and*_test.cufor CUDA source tests. - Do not create nested
test/ortests/directories for new unit tests unless the surrounding tree already requires that structure.
- Read xllm-test-patterns.md when adding a new test file, new