pengbin/codecoverage

web php-fpm代码覆盖率

V1.0.1 2023-07-11 02:09 UTC

This package is auto-updated.

Last update: 2024-09-11 04:43:15 UTC


README

入门指南

以下安装步骤适用于Laravel框架的最新版本(8.x和9.x)。

安装

安装 pengbin/codecoverage

composer require pengbin/codecoverage

通过修改 App/Exceptions/Handler.php 文件来启用捕获未处理的异常并将其报告给Sentry

配置

配置代码覆盖率路径

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'))),
];

您可以创建配置文件(code_coverage.php