定制 devnix/clover-uncovered-lines 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

devnix/clover-uncovered-lines

Composer 安装命令:

composer require devnix/clover-uncovered-lines

包简介

A tool to extract uncovered lines from Clover code coverage reports.

README 文档

README

Coverage Status

A simple CLI tool to parse Clover XML coverage reports and display uncovered lines in a human(-and-llm)-readable format.

Installation

Install via Composer:

composer require --dev devnix/clover-uncovered-lines

Usage

Run the tool by passing the path to your Clover XML coverage file:

vendor/bin/clover-uncovered-lines path/to/clover.xml

Example Output

When there are uncovered lines:

Uncovered lines:

src/Example.php
  Lines 15-18
  Line 42 (method)

src/AnotherFile.php
  Line 23

Summary: 5 uncovered lines in 2 file(s)

When all lines are covered:

✓ All lines are covered!

Exit Codes

  • 0 - All lines are covered
  • 1 - Uncovered lines found or error occurred

Features

  • Parses Clover XML coverage reports
  • Groups consecutive uncovered lines into ranges for readability
  • Identifies uncovered methods
  • Auto-detects project root from XML paths
  • Provides summary statistics

Requirements

  • PHP 8.4 or higher

License

MIT

Author

Pablo Largo Mohedano (devnix.code@gmail.com)

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-10