mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-07 17:53:32 +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,30 +0,0 @@
|
||||
# 測試需求
|
||||
|
||||
## 最低測試覆蓋率:80%
|
||||
|
||||
測試類型(全部必要):
|
||||
1. **單元測試** - 個別函式、工具、元件
|
||||
2. **整合測試** - API 端點、資料庫操作
|
||||
3. **E2E 測試** - 關鍵使用者流程(Playwright)
|
||||
|
||||
## 測試驅動開發
|
||||
|
||||
強制工作流程:
|
||||
1. 先撰寫測試(RED)
|
||||
2. 執行測試 - 應該失敗
|
||||
3. 撰寫最小實作(GREEN)
|
||||
4. 執行測試 - 應該通過
|
||||
5. 重構(IMPROVE)
|
||||
6. 驗證覆蓋率(80%+)
|
||||
|
||||
## 測試失敗疑難排解
|
||||
|
||||
1. 使用 **tdd-guide** Agent
|
||||
2. 檢查測試隔離
|
||||
3. 驗證 mock 是否正確
|
||||
4. 修復實作,而非測試(除非測試是錯的)
|
||||
|
||||
## Agent 支援
|
||||
|
||||
- **tdd-guide** - 主動用於新功能,強制先撰寫測試
|
||||
- **e2e-runner** - Playwright E2E 測試專家
|
||||
Reference in New Issue
Block a user