我认为我对PhpStorm配置有问题,因为当我运行具有覆盖率的PhpUnit配置时,统计信息显示0%,但是来自PhpUnit 的HTML报告显示100%。
phpunit.xml
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
<php>
<const name="PHPUNIT_TESTSUITE_RESULTCACHE" value="true"/>
</php>
<testsuites>
<testsuite name="Unit Test Suite">
<directory>./</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./coverage/" lowUpperBound="35" highLowerBound="70"/>
</logging>
</phpunit>
覆盖HTML报告: https://prnt.sc/moj2oy
PhpStorm统计信息: https://prnt.sc/moj3mp
有什么想法吗?