validate-tests
Installation
SKILL.md
validate-tests -- Test Anti-Pattern Detection
Corresponding rule: testing.md
Purpose
Statically detect anti-patterns in test code based on behavior-driven testing principles (testing.md). Identify patterns that hurt maintainability, such as implementation-detail testing, excessive mocking, and shared global state.
Input
- Target: test files (
*.test.*,*.spec.*,test_*,*_test.*) - Default search path: entire project. If CLAUDE.md specifies a test directory, that path takes precedence.
Validation Categories
1. Vague Test Names
Detect patterns where test names provide no clue to the cause of failure.