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数据还没有调出来,数据还在调试中,有了解的同学请指点,谢谢
详细解决方案
关于phpunit与Selenium取coverage的配备(原创)
热度:594 发布时间:2016-04-28 22:59:04.0
相关解决方案
- Junit+Selenium+Maven+SVN+Eclipse+AutoFrame全自动化测试实践范例(一)
- Selenium-感受之旅
- selenium webdriver学习(十九)-小弟我们的构建文件CrazyFunBuild (译)
- PHPUNIT 测试 涉及到singleton类的有关问题
- selenium 怎么判断当前HTML下正常显示
- selenium 进阶二: CSS SELECTOR 的完整版
- selenium 进阶一: CSS SELECTOR
- phpunit+selenium环境筹建
- pear装配 与phpstorm运行 phpunit
- 利用 Zend Studio 九 Run As PHPUnit Test 总结
- Windows 停安装 phpunit
- AJAX testing tool -Selenium user manual (Selenium用户指南)4
- Selenium 2.0 WebDriver 使用课程 实例教程 API快速参考
- Selenium-webdriver 页面模式在实际项目中的实际运用,大量Page页面怎么初始化
- selenium webdriver学习遇到的有关问题
- Selenium-感受之旅
- WebDriver (Selenium 二) 中文文档
- 和小弟我一起学 Selenium WebDriver(7)――基础篇
- 和小弟我一起学 Selenium WebDriver(3)――基础篇
- selenium webdriver散记
- 和小弟我一起学 Selenium WebDriver(4)――基础篇
- Cobertura ( Jave testing coverage tool)
- Selenium-Webdriver系列课程(2)――――浏览器的简单操作
- Selenium + TestNG + Yaml作浏览器自动化测试很棒
- Selenium 与 JUnit 兑现自动化测试
- Selenium-webdriver系列课程(12)――――fire event的替代方案
- Selenium 2.0 and WebDriver - the 五 minute getting started guide
- Selenium-webdriver系列课程(15)――――使用已存在的profile启动firefox
- Selenium-webdriver系列教程(13)――――如何避免table
- Selenium-webdriver系列教程(14)――――怎么在启动firefox时加载扩展