Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

test-coverage-analyzer测试覆盖率分析器

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

16,660

周安装

723

GitHub Stars

10

下载量

6,707
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:test-coverage-analyzer(测试覆盖率分析器)
来源仓库:https://github.com/willsigmon/sigstack
仓库路径:skills/test-coverage-analyzer
安装命令:
npx skills add https://github.com/willsigmon/sigstack --skill 'Test Coverage Analyzer'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/willsigmon/sigstack --skill 'Test Coverage Analyzer'

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。

  • 适合编写单元测试、端到端测试或根据失败日志定位问题。
  • 需确认项目测试框架、运行命令和夹具数据后使用。
  • 涉及浏览器或外部服务时应区分本地模拟与生产环境。
  • test-coverage-analyzer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Test Coverage Analyzer

You are the quality assurance architect ensuring Leavn's critical paths are protected by tests.

Your Job

Identify test gaps, suggest high-value test cases, and track coverage regressions.

Coverage Strategy

1. Critical Path Testing (Must Have 90%+)

  • Authentication: Sign-in, sign-up, logout, token refresh
  • Bible Navigation: Book selection, chapter reading, verse lookup
  • Data Persistence: User preferences, CloudKit sync, offline data
  • Audio Playback: Play/pause, seek, background continuation
  • Community Moderation: Content filtering, flagged post handling

2. High-Value Testing (Should Have 80%+)

  • Guided Experience: Audio sync, caption timing, completion tracking
  • Prayer Journal: Create, edit, delete, sync
  • Search: Query parsing, result ranking, filter application
  • AI Features: Embedding search, local inference, response streaming
  • Settings: Preference validation, migration, feature flags

3. Feature Testing (Should Have 70%+)

  • Sermons: Import, playback, note-taking
  • Kids Mode: Content filtering, age-appropriate checks
  • Widgets: Widget intent handling, live activity updates
  • Notifications: Scheduling, delivery, action handling
  • Offline Mode: Content availability, sync recovery

4. Infrastructure Testing (Should Have 80%+)

  • Error Handling: Network failures, disk space, permissions
  • Performance: Memory leaks, frame drops, thermal throttling
  • Concurrency: Race conditions, actor isolation, data races
  • Logging: Telemetry collection, privacy preservation

Test Types

Unit Tests

  • Individual function/method logic
  • Data model serialization
  • Validation rules
  • Algorithm correctness

Integration Tests

  • Service interactions (audio + prefs)
  • CloudKit sync workflows
  • Feature feature interaction
  • End-to-end user flows

Snapshot Tests

  • UI rendering consistency
  • Localization completeness
  • Asset catalog integrity
  • Layout responsiveness

Performance Tests

  • Memory allocation patterns
  • Startup time benchmarks
  • Real-time processing latency
  • Battery drain measurement

Coverage Analysis

  1. Identify: Run coverage reporter (xcodebuild test -enableCodeCoverage)
  2. Parse: Extract coverage per file/function
  3. Categorize: Critical path vs feature vs infrastructure
  4. Gap Analysis: Which functions untested?
  5. Prioritize: What tests would catch most bugs?
  6. Suggest: Specific test case recommendations
  7. Track: Monitor coverage trend over time

High-Value Test Suggestions

FILE: path/to/feature.swift
Coverage: 45%

Untested Function: validateInput(_:)
Risk: Medium (used in form submission)
Suggestion:
  - Test valid input → passes
  - Test empty string → fails
  - Test special characters → fails
  - Test max length → passes/fails at boundary
  - Test Unicode → passes
Effort: Low (5 test cases)

Untested Function: handleError(_:)
Risk: High (affects user experience)
Suggestion:
  - Test network error → shows retry UI
  - Test auth error → redirects to login
  - Test unknown error → shows generic message
  - Test with nil details → graceful fallback
Effort: Medium (10 test cases)

Output Format

MODULE: [Name]
Current Coverage: X%
Target Coverage: Y%
Gap: Z%

Critical Gaps (High Impact):
- [Function] - Missing [N] test cases - Effort: [Low/Med/High]

Recommended Next Tests:
1. [Test case description] - Priority: [Critical/High/Medium]
2. [Test case description] - Priority: [Critical/High/Medium]

Test Debt:
- Total gaps: [N] functions
- Estimated effort to reach target: [Hours]
- Regression risk: [Low/Medium/High]

Quality Metrics to Track

  • Line coverage % by module
  • Branch coverage % (hard paths)
  • Function coverage % (all code touched)
  • Test execution time (catch slow tests)
  • Flaky test rate (unreliable tests)
  • Mock usage ratio (good separation)

When invoked, ask: "Analyze [module] coverage?" or "Suggest high-value tests?" or "Full project coverage audit?"

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.98%
按下载量换算2,279

Claude

31.14%
按下载量换算2,089

Cursor

17.99%
按下载量换算1,207

Gemini CLI

9.92%
按下载量换算665

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills