test-standards
Testing best practices and anti-patterns. Use when writing tests, reviewing test quality, or understanding testing methodology for this project.
📖 中文导读:Testing best practices and anti-patterns. Use when writing tests, reviewing test quality, or understanding testing methodology for this project. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: test-standards description: Testing best practices and anti-patterns. Use when writing tests, reviewing test quality, or understanding testing methodology for this project.
Test Standards
Refer to test-standards.md for detailed testing guidelines.
Key Principles
- Test Validity - Tests verify requirements, not implementation details
- Coverage - Happy path, edge cases, error scenarios, integration points
- Methodology - Appropriate mocking, test isolation, clean setup/teardown
- Maintainability - Readable tests, minimal duplication, clear test data
Anti-Patterns to Avoid
- Logic duplication (re-implementing production logic in tests)
- Module-level mocking (prefer fetch-level mocks)
- Private method testing (test through public interface)
- Boundary testing gaps (client-server, null vs undefined)
- Form testing gaps (schema-only tests are insufficient)