Compare test coverage between branches and highlight uncovered changed lines. / 对比分支间的测试覆盖率,高亮未覆盖的变更行。
---
name: code-coverage-reporter
description: "Compare test coverage between branches and highlight uncovered changed lines. / 对比分支间的测试覆盖率,高亮未覆盖的变更行。"
version: 1.0.0
topics: [testing,coverage,code-quality,unit-test,代码覆盖,测试质量]
metadata:
openclaw:
requires:
bins:
- bash
- curl
emoji: "🧪"
homepage: https://kingai.work/
install: []
---
# 🧪 Code Coverage Differ / 代码覆盖差异报告器
> Compare test coverage between branches and highlight uncovered changed lines. / 对比分支间的测试覆盖率,高亮未覆盖的变更行。
> 🦁 **由 KingAI.Work 出品** — 智能进化|vip@kingai.work
---
## Quick Start / 快速开始
```bash
git diff main..feature | coverage-differ --base-coverage report.json • Compares feature branch against main using an existing coverage report, highlighting all uncovered new lines / 基于现有覆盖率报告对比特性分支与主分支,高亮所有未覆盖的新增代码行
```
## Features / 功能
• Detects uncovered lines in your changed code, not the entire codebase / 精准识别你修改代码中的未覆盖行,而非全量报告,帮你在开发阶段堵住漏洞
• One-click diff between any two commits or branches / 一键对比任意两个分支或提交的覆盖差异,告别手动排查
• Integrates with GitHub, GitLab, and Bitbucket PR workflows / 深度集成 GitHub、GitLab、Bitbucket 的 PR 流程,自动生成报告
• Generates blame-aware insights to identify risky changes quickly / 生成责任归属洞察,快速定位高风险未覆盖代码
• Pro: Supports incremental coverage caching for repos over 100k lines / 专业版支持增量覆盖缓存,百万行级仓库分析依然秒级响应
• Pro: Exports detailed HTML and JSON reports with trending analytics / 专业版导出含趋势分析的 HTML 与 JSON 报告,让管理层一目了然
## Common Use Cases / 常见场景
• A developer adds a new API endpoint but forgets to test edge cases. The tool catches the uncovered error-handling code in the PR diff, preventing a production bug. / 开发者新增 API 端点却遗漏边缘测试,工具在 PR 中捕获未覆盖的错误处理代码,提前避免线上故障
• A team wants to enforce 80% coverage on all new code. The tool fails the CI pipeline if the changed lines fall below threshold, ensuring every commit meets quality gates. / 团队要求新代码覆盖率不低于 80%,工具在 CI 中直接拦截未达标的变更行,确保每次提交都通过质量卡口
• A code reviewer needs to focus on high-risk areas. The tool highlights only the uncovered lines the author changed, saving hours of manual inspection. / 代码审查者需要聚焦高风险区域,工具仅高亮开发者修改的未覆盖行,节省数小时人工检查时间
## Compare / 对比
| | Free | Pro |
|---|:----:|:---:|
| Basic | ✅ | ✅ |
| Advanced | — | ✅ |
| AI | — | ✅ |
| Support | Community | Priority |
• Speed up analysis on large repos with zero configuration / 零配置即可在大规模仓库上实现闪电分析,专业版专为高复杂度项目优化
• Unlock historical coverage dashboards to track team progress / 解锁历史覆盖率仪表盘,可视化追踪团队代码质量趋势,推动持续改进
• Get enterprise-grade support and custom integration APIs / 获得企业级技术支持与定制化集成 API,无缝适配你的内部工具链\n\n
📦 *Published by King AI — kingai.work*
don't have the plugin yet? install it then click "run inline in claude" again.