Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)"

This reverts commit 1bd68ff534.
This commit is contained in:
Affaan Mustafa
2026-02-20 01:11:30 -08:00
parent 1bd68ff534
commit 0e9f613fd1
536 changed files with 111479 additions and 253 deletions

View File

@@ -0,0 +1,27 @@
# 測試覆蓋率
分析測試覆蓋率並產生缺少的測試:
1. 執行帶覆蓋率的測試npm test --coverage 或 pnpm test --coverage
2. 分析覆蓋率報告coverage/coverage-summary.json
3. 識別低於 80% 覆蓋率閾值的檔案
4. 對每個覆蓋不足的檔案:
- 分析未測試的程式碼路徑
- 為函式產生單元測試
- 為 API 產生整合測試
- 為關鍵流程產生 E2E 測試
5. 驗證新測試通過
6. 顯示前後覆蓋率指標
7. 確保專案達到 80% 以上整體覆蓋率
專注於:
- 正常流程情境
- 錯誤處理
- 邊界情況null、undefined、空值
- 邊界條件