thingston/coverage-check
最新稳定版本:v1.1.303
Composer 安装命令:
composer require thingston/coverage-check
包简介
Console script to check code coverage using Clover reports.
README 文档
README
Console script to check code coverage using Clover reports.
Requirements
- PHP 8.1
Instalation
composer require --dev thingston/coverage-check
Usage
From your project root run:
php vendor/bin/phpcov /path/to/coverage.xml 99
Or just this one to get more help:
php vendor/bin/phpcov --help
Testing
Available Composer scripts:
composer run test- Runs all tests using PHPUnit.composer run coverage:text- Runs all tests using PHPUnit and generates a coverage report to the console.composer run coverage:clover- Runs all tests using PHPUnit and generates an XML coverage report to filecoverage.xml.composer run coverage:html- Runs all tests using PHPUnit and generates an XML coverage report to directorycoverage.composer run coverage:check- Runs thecoverage:cloverscript and checks the code coverage rate (requires >= 90%).composer run analyze- Runs the PHPStan static analysis and displays the results to the console.composer run cs- Runs the Code Sniffer static analysis and displays any errors to the console.composer run cbf- Runs the Code Sniffer code fixer and displays the results to the console.composer run checks- Runs the scriptscs,analyzeandcoverage:checkand displays the results to the console.
Support
统计信息
- 总下载量: 577
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-07