Skip to content

Commit 5872637

Browse files
committed
Add mandatory coverage requirements to CLAUDE.md
Establish test coverage maintenance requirements across all Socket projects to prevent regressions and ensure code quality.
1 parent d8fd28d commit 5872637

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CLAUDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ You are a **Principal Software Engineer** responsible for:
104104
- `pnpm run typecheck`
105105
- Run tests with: `pnpm test`
106106
- Pre-commit hooks will run automatically
107+
- **🚨 MANDATORY Coverage Requirements**: Before pushing commits, ensure test coverage is maintained or improved
108+
- **Never decrease coverage**: All changes MUST maintain or increase existing coverage percentages
109+
- **Check before push**: Run `pnpm run test` to verify coverage thresholds are met
110+
- **Fix coverage drops**: If coverage decreases, add tests to restore or improve coverage before pushing
111+
- **Rationale**: Declining coverage indicates untested code paths, which increases risk of bugs and regressions
107112

108113
### 6. Git Workflow
109114
- **DO NOT commit automatically** - let the user review changes first

0 commit comments

Comments
 (0)