当前位置: 代码迷 >> PHP >> 关于phpunit与Selenium取coverage的配备(原创)
  详细解决方案

关于phpunit与Selenium取coverage的配备(原创)

热度:594   发布时间:2016-04-28 22:59:04.0
关于phpunit与Selenium取coverage的配置(原创)

phpunit与Selenium取coverage的配置如下:
在phpunit.xml中加入如下代码配置。
<logging>
? ?? ???<log type="coverage-html" target="./log/coverage"??charset="UTF-8" highlight="true" lowUpperBound="50" highLowerBound="90"/>
</logging>

还需加入

<filter>
? ?? ???<whitelist>
? ? ? ? ? ? ? ? ? ? ? ? <directory suffix=".php">你的代码所在路径</directory>
? ?? ???</whitelist>
</filter>


如果不加白名单,会被默认全当黑名单处理的。


以上。只是实现了生成coverage文件,coverage数据还没有调出来,数据还在调试中,有了解的同学请指点,谢谢

  相关解决方案