PhpStorm显示0%的代码覆盖率,但PhpUnit覆盖率结果为100%

时间:2019-02-22 08:34:05

标签: phpunit phpstorm code-coverage

我认为我对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

有什么想法吗?

0 个答案:

没有答案