phpunit - PhpStorm shows 0% code coverage, but PhpUnit coverage results are 100%
问题描述
I think I have something wrong with PhpStorm configuration, because when I run PhpUnit configuration with coverage, statistic shows 0%, but HTML report from PhpUnit shows 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>
Coverage HTML report: https://prnt.sc/moj2oy
PhpStorm statistics: https://prnt.sc/moj3mp
Any ideas?
解决方案
推荐阅读
- linux - Python,多线程,套接字有时无法创建
- python - 如何在 Visual Studio Code 中调试现有的 lambda?
- c++ - 如何使用 decltype 获取向量元素的类型作为模板参数
- powershell - 如何提高目录创建速度
- android - 未使用 Room 的实体自动生成主键
- javascript - 如何在div的边界内对齐文本标题
- css - 如何处理以大百分比(300%)放大的多个屏幕分辨率
- wpf - 在活动窗口或网格内部而不是 MainWindow 上查找控件
- python - 使用 live stereo3d 图像在迷宫中进行路径检测和进展
- javascript - 如何将二进制图像从 json 响应保存到 S3 存储桶