guitarneck/xdebug-coverage

xdebug coverage reporting tool

1.1.0 2022-08-12 20:57 UTC

This package is auto-updated.

Last update: 2024-05-12 00:46:36 UTC


README

Version 1.1.0 GitHub release (latest by date) GitHub last commit Packagist Version Packagist PHP Version Support Packagist Downloads GitHub license Keep a Changelog v1.1.0

This project is abandoned, and replaced by php-coverage

XDebugCoverage

A PHP framework to run XDebug Code Coverage and get reports of the result.

Table of Contents

Install

composer require guitarneck/xdebug-coverage --dev

Command

$ coverage/coverage tests/Something.test.php [options]

Options

   --debug

   --excludes=,--excludes,-x              The paths to exclude. Separated by ','.
                                          Ex: vendor/,tests/,inc/lib/

   --format=,--format,-F                  The file format to be generated.

   --help,-h                              This help page

   --includes=,--includes,-i              The paths to include. Separated by ','.
                                          Ex: src/,inc/

   --no-extra-filter

   --output-path=,--output-path,-p        The paths to output. Separated by ','.
                                          Ex: {DIR},..,reports
                                          - {DIR}: __DIR__ ('coverage/sources')
                                          - ..   : parent path

configuration

Default configuration can be sets in coverage/sources/XDebugCoverage.json

Using .dot

Grahpviz is open source graph visualization software.

$ dot -Tsvg coverage\\reports\\Hello.dot > Hello.svg

License

MIT © guitarneck