guitarneck / xdebug-coverage
xdebug 覆盖率报告工具
1.1.0
2022-08-12 20:57 UTC
Requires
- php: >=5.6.0
- composer-runtime-api: ^2.0.0
Requires (Dev)
- guitarneck/taphp: ^1.0
Suggests
- ext-xdebug: *
This package is auto-updated.
Last update: 2024-09-12 01:45:17 UTC
README
此项目已弃用,并由 php-coverage 替代
XDebugCoverage
一个用于运行 XDebug 代码覆盖率并获取结果报告的 PHP 框架。
目录
安装
composer require guitarneck/xdebug-coverage --dev
命令
$ coverage/coverage tests/Something.test.php [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
配置文件
默认配置可以在 coverage/sources/XDebugCoverage.json 中设置
使用 .dot
Graphviz 是开源的图形可视化软件。
$ dot -Tsvg coverage\\reports\\Hello.dot > Hello.svg