mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-10 19:33:37 +08:00
feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)
ECC community plugin pruning: removed 530+ non-essential files (.cursor/, .opencode/, docs/ja-JP, docs/zh-CN, docs/zh-TW, language-specific skills/agents/rules). Retained 4 agents, 3 commands, 5 skills. Promoted 13 rule files (8 common + 5 typescript) to .claude/rules/ for CC native loading. Extracted reusable patterns to EXTRACTED-PATTERNS.md.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
# 测试覆盖率
|
||||
|
||||
分析测试覆盖率并生成缺失的测试:
|
||||
|
||||
1. 运行带有覆盖率的测试:npm test --coverage 或 pnpm test --coverage
|
||||
|
||||
2. 分析覆盖率报告 (coverage/coverage-summary.json)
|
||||
|
||||
3. 识别覆盖率低于 80% 阈值的文件
|
||||
|
||||
4. 对于每个覆盖率不足的文件:
|
||||
* 分析未测试的代码路径
|
||||
* 为函数生成单元测试
|
||||
* 为 API 生成集成测试
|
||||
* 为关键流程生成端到端测试
|
||||
|
||||
5. 验证新测试通过
|
||||
|
||||
6. 显示覆盖率指标的前后对比
|
||||
|
||||
7. 确保项目整体覆盖率超过 80%
|
||||
|
||||
重点关注:
|
||||
|
||||
* 正常路径场景
|
||||
* 错误处理
|
||||
* 边界情况(null、undefined、空值)
|
||||
* 边界条件
|
||||
Reference in New Issue
Block a user