pengbin / codecoverage
web php-fpm代码覆盖率
V1.0.1
2023-07-11 02:09 UTC
Requires
- php: ^8.0
- ext-redis: *
- ext-xdebug: *
- laravel/framework: ^8.0|^9.0|^10.0
- phpunit/php-code-coverage: ^9.2
This package is auto-updated.
Last update: 2024-10-11 04:52:19 UTC
README
Getting Started
The installation step below work on the latest versions of the Laravel framework (8.x and 9.x).
Install
Install the pengbin/codecoverage
package:
composer require pengbin/codecoverage
Enable capturing unhandled exception to report to Sentry by making the following change to your App/Exceptions/Handler.php
:
Configure
Configure the code_coverage path
return [ 'collect_path' => env('COLLECT_PATH', app_path('Services')), 'report_data_path' => env('REPORT_DATA_PATH', public_path(config('app.code_coverage_report_path', 'code-coverage-report'))), ];
You can creates the config file (code_coverage.php
)