【问题标题】:phpunit coverage-unit doesn't generate reportsphpunit coverage-unit 不生成报告
【发布时间】:2020-10-19 23:38:20
【问题描述】:

大家好, 我对 phpunit 覆盖 html 组件有一些问题。 我正确安装了组件和启动命令:

vendor/bin/phpunit --coverage-html tests

测试工作正常,但没有生成 html 报告。附上最终结果。 经典的“以 HTML 格式生成代码覆盖率报告……完成”没有出现。

你能帮帮我吗? 谢谢

【问题讨论】:

    标签: phpunit php-code-coverage


    【解决方案1】:

    错误消息显示“没有可用的代码覆盖驱动程序”。您的 PHP 环境缺少 Xdebug 或 PCOV。

    【讨论】:

      猜你喜欢
      • 2014-05-12
      • 1970-01-01
      • 1970-01-01
      • 2016-10-24
      • 2020-07-20
      • 2022-09-29
      • 1970-01-01
      • 2016-10-04
      • 1970-01-01
      相关资源
      最近更新 更多