问题描述
测试用例通过但未生成 html 报告文件。 这是我的 PHPunit.xml 文件
<?xml version="1.0" encoding="UTF-8"?>
<PHPunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/PHPunit/PHPunit/PHPunit.xsd"
bootstrap="vendor/autoload.PHP"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.PHP">./tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory suffix="Test.PHP">./tests/Feature</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".PHP">./app</directory>
</include>
<report>
<html outputDirectory="reports/coverage"/>
</report>
</coverage>
<PHP>
<server name="APP_ENV" value="testing"/>
<server name="BCRYPT_ROUNDS" value="4"/>
<server name="CACHE_DRIVER" value="array"/>
<server name="DB_CONNECTION" value="sqlite"/>
<server name="DB_DATABASE" value=":memory:"/>
<server name="MAIL_MAILER" value="array"/>
<server name="QUEUE_CONNECTION" value="sync"/>
<server name="SESSION_DRIVER" value="array"/>
<server name="TELEScopE_ENABLED" value="false"/>
</PHP>
</PHPunit>
并使用它来运行。 PHPunit --coverage-html 报告
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)