coverage-analyzer
✓當用戶詢問測試了哪些代碼、提及覆蓋範圍差距或顯示詢問測試的代碼時,自動分析測試覆蓋率。識別未經測試的代碼路徑並建議添加測試。當用戶詢問“哪些內容未測試?”、“覆蓋範圍”、“未經測試的代碼”或“缺少哪些測試?”時調用。
SKILL.md
Knowing what's tested gives confidence to refactor and prevents regressions.
public function handleError($error) { // Line 45: No test coverage if ($error instanceof ValidationException) { return $this->formatValidationError($error); } // Line 49: No test coverage if ($error instanceof DatabaseException) { return $this->formatDatabaseError($error); } // Line 53: Tested return $this->formatGenericError($error); }
public function testHandleValidationException(): void { $exception = new ValidationException('Invalid input'); $result = $this->processor->handleError($exception); $this->assertStringContains('validation error', $result); }
當用戶詢問測試了哪些代碼、提及覆蓋範圍差距或顯示詢問測試的代碼時,自動分析測試覆蓋率。識別未經測試的代碼路徑並建議添加測試。當用戶詢問“哪些內容未測試?”、“覆蓋範圍”、“未經測試的代碼”或“缺少哪些測試?”時調用。 來源:kanopi/cms-cultivator。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/kanopi/cms-cultivator --skill coverage-analyzer- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 coverage-analyzer?
當用戶詢問測試了哪些代碼、提及覆蓋範圍差距或顯示詢問測試的代碼時,自動分析測試覆蓋率。識別未經測試的代碼路徑並建議添加測試。當用戶詢問“哪些內容未測試?”、“覆蓋範圍”、“未經測試的代碼”或“缺少哪些測試?”時調用。 來源:kanopi/cms-cultivator。
如何安裝 coverage-analyzer?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/kanopi/cms-cultivator --skill coverage-analyzer 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/kanopi/cms-cultivator
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01