Development v0.3.0

test-coverage-report

Analyze test coverage gaps by comparing test files against source modules to identify untested code paths and critical...

jk625x 更新于 2026-06-04 1 浏览
下载 SKILL

技能说明

Analyze test coverage gaps by comparing test files against source modules to identify untested code paths and critical functions.

使用场景

Identify test coverage gaps by analyzing the relationship between source modules and their corresponding test files.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/test-coverage-report
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

6 个文件 · 13 kB
SKILL.md text/markdown
---
name: test-coverage-report
description: Analyze test coverage gaps by comparing test files against source modules to identify untested code paths and critical functions.
version: 0.3.0
displayName: Test Coverage Report
metadata:
  openclaw:
    author: xd-test
    consumers:
      - name: xdclaw
        minVersion: 1.2.0
    permissions:
      filesystem:
        - read
      network: false
      shell: true
---

# Test Coverage Report

Identify test coverage gaps by analyzing the relationship between source modules and their corresponding test files.

## Analysis Steps

- Map each source file to its test file(s) using naming conventions (`.test.ts`, `.spec.ts`, `__tests__/`).
- Identify source files with no corresponding test file.
- For files with tests, check which exported functions and classes have test coverage.
- Prioritize coverage gaps by risk: public API surface, error handling paths, and data mutation functions.
- Check for test files that import from modules that no longer exist (orphaned tests).

## Risk Scoring

- Critical: Public API handlers with no test coverage.
- High: Data mutation functions (create, update, delete) without tests.
- Medium: Utility functions used by multiple modules without tests.
- Low: Internal helper functions with single callers.

## Output

Provide a coverage gap report sorted by risk level. For each gap, show the source file, the untested exports, and a suggested test outline.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。