testing
Test writing protocol
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Test writing protocol
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| description | Test writing protocol |
Write tests for the specified code following a structured protocol. Produce thorough, maintainable tests that cover the important behavior.
Identify what to test: Analyze the code to determine test targets.
Choose test structure: Select the appropriate pattern.
Name tests descriptively: Test names should explain the scenario.
TestFunctionName_Scenario_ExpectedResultTestValidate_EmptyInput_ReturnsErrorSet up test fixtures: Prepare the test environment.
Write assertions: Verify behavior clearly.
Mock boundaries, not internals: Keep tests focused.
Check coverage gaps: Review what is not yet tested.
Produce test code that:
Structured code review
Find and load available skills
PR description generation
Spec-faithful implementation for spec-driven development
Architecture and interface design for spec-driven development
Codebase analysis and context gathering for spec-driven development