首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

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

2012-12-24 
关于phpunit与Selenium取coverage的配置(原创)phpunit与Selenium取coverage的配置如下:在phpunit.xml中加

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

热点排行