一键导入
testing-strategy
Testing philosophy and strategy. Use this when deciding what to test, naming tests, or identifying corner cases.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Testing philosophy and strategy. Use this when deciding what to test, naming tests, or identifying corner cases.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | testing-strategy |
| description | Testing philosophy and strategy. Use this when deciding what to test, naming tests, or identifying corner cases. |
Add a test only when it satisfies at least ONE of:
Do NOT add tests for:
Use the format TestUnit_Scenario_ExpectedOutcome:
TestParseConfig_MissingRequiredField_ReturnsError
TestParseConfig_ValidInput_ReturnsParsedResult
Sub-tests use plain, readable English:
"missing required field returns error"
"valid input with 3 items succeeds"
Keep each test focused on one behaviour. When multiple scenarios exist, use table rows rather than separate functions.
Before marking a feature tested, ask:
Resolve GitHub PR review comments safely, read unresolved comments, validate each issue, make minimal fixes, test, commit, and resolve.
Use zero-install context minimization first, with optional local optimization tooling when available.
Accessibility review for semantic HTML, ARIA, keyboard support, focus, screen readers, contrast, and WCAG-oriented issues.
API and contract review for OpenAPI/AsyncAPI/protobuf changes, backwards compatibility, schemas, status codes, and examples.
Architecture review for SOLID, layering, boundaries, coupling, cohesion, extensibility, and maintainability.
Backend review for handlers, services, validation, errors, transactions, dependency boundaries, and service contracts.