关于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数据还没有调出来,数据还在调试中,有了解的同学请指点,谢谢
页:
[1]