coverage

Test Coverage Assistant | 測試覆蓋率助手

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "coverage" with this command: npx skills add asiaostrich/universal-dev-standards/asiaostrich-universal-dev-standards-coverage

Test Coverage Assistant | 測試覆蓋率助手

Analyze test coverage across multiple dimensions and provide actionable recommendations.

多維度分析測試覆蓋率並提供可執行的建議。

Coverage Dimensions | 覆蓋率維度

Dimension What it Measures 測量內容

Line Lines of code executed 執行的程式碼行數

Branch Decision paths taken 決策路徑覆蓋

Function Functions called 呼叫的函數

Statement Statements executed 執行的陳述式

8-Dimension Framework | 八維度框架

  • Code Coverage - Lines, branches, functions

  • Requirement Coverage - All requirements have tests

  • Risk Coverage - High-risk areas prioritized

  • Integration Coverage - Component interaction paths

  • Edge Case Coverage - Boundary conditions tested

  • Error Coverage - Error handling paths verified

  • Permission Coverage - Access control scenarios

  • AI Generation Quality - AI-generated test effectiveness

Coverage Targets | 覆蓋率目標

Level Coverage Use Case 適用場景

Minimum 60% Legacy code 遺留程式碼

Standard 80% Most projects 大多數專案

High 90% Critical systems 關鍵系統

Critical 95%+ Safety-critical 安全關鍵

Workflow | 工作流程

  • Run coverage tool - Generate coverage report | 產生覆蓋率報告

  • Analyze gaps - Identify untested areas | 識別未測試區域

  • Prioritize - Rank by risk and importance | 依風險排序

  • Recommend tests - Suggest specific tests to add | 建議新增測試

  • Track progress - Monitor coverage over time | 追蹤進度

Usage | 使用方式

/coverage - Run full coverage analysis | 執行完整覆蓋率分析 /coverage src/auth - Analyze specific module | 分析特定模組 /coverage --recommend - Get test recommendations | 取得測試建議

Next Steps Guidance | 下一步引導

After /coverage completes, the AI assistant should suggest:

覆蓋率分析完成。建議下一步 / Coverage analysis complete. Suggested next steps:

  • 覆蓋率不足 → 執行 /tdd 補齊測試 — Coverage gaps → Run /tdd to add tests

  • 已達標 → 執行 /checkin 品質關卡 — Targets met → Run /checkin quality gates

  • 發現熱點 → 執行 /refactor 改善可測試性 — Hotspots found → Run /refactor

Reference | 參考

  • Detailed guide: guide.md

  • Core standard: test-completeness-dimensions.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

atdd

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

docgen

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

bdd

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

refactor

No summary provided by upstream source.

Repository SourceNeeds Review