Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

unit-test-running-coverage-analysis单元测试运行覆盖率分析

Agent Skill

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

总安装

190

周安装

8

GitHub Stars

5

下载量

67
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/wizeline/sdlc-agents --skill unit-test-running-coverage-analysis

简介

该技能执行测试并输出代码覆盖率分析报告。

  • 适用于持续集成环境中监控测试有效性。
  • 支持 HTML/XML 格式导出便于团队共享查看。
  • 高覆盖率不等于高质量需关注关键路径覆盖情况。
  • unit-test-running-coverage-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

When to Apply This Skill

  • A developer asks "what am I missing?" after initial test generation
  • A coverage report (coverage.py, Istanbul, JaCoCo) is available and needs interpretation
  • Pre-sprint planning requires a gap estimate and effort forecast for a module
  • A team wants to know exactly what it takes to reach a coverage target (e.g. 80%)

Atomic Skills to Load First

Read this file before executing any step:

  1. ../unit-test-analyzing-code-coverage/SKILL.md — All four coverage types (line / branch / function / statement), gap severity classification, tool integration guides (coverage.py, Istanbul, JaCoCo, coverlet), anti-pattern detection, and all three output report formats

Execution Steps

Read references/index.md before executing any step.

Step 1 — Receive Input

Accepted inputs (one or more):

  • Coverage report: JSON (coverage.py / Istanbul), XML (JaCoCo / Cobertura), HTML
  • Source code file (for structural gap analysis when no report is provided)
  • Existing test file (to cross-reference against source for uncalled paths)
  • Coverage target, e.g. "80% line, 75% branch" (defaults to these if not specified)

Step 2 — Analyze

Follow the full analysis workflow from ../unit-test-analyzing-code-coverage/SKILL.md:

  • Parse coverage data or analyze source structure statically
  • Identify: uncovered lines, untaken branches, uncalled functions, unhandled exceptions
  • Classify every gap: CRITICAL | HIGH | MEDIUM | LOW
  • Flag coverage anti-patterns (over-permissive mocks, integration tests masking gaps)

Step 3 — Produce Outputs

Generate all three deliverables defined in the unit-test-analyzing-code-coverage skill.


Output Deliverables

coverage_gap_report.md        <- prioritized gap table (severity, location, description)
recommended_tests.md          <- specific named tests to write, with descriptions
coverage_delta_estimate.md    <- projected coverage % once recommended tests are added

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

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

平台分布

Codex

34.12%
按下载量换算23

Claude

31.94%
按下载量换算21

Cursor

17.27%
按下载量换算12

Gemini CLI

8.87%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills