[英]how to use phpunit and xdebug to get code coverage
I want to get code coverage for a web site. 我想获得一个网站的代码覆盖率。 I need to do manual test instead of writing code.
我需要进行手动测试,而不是编写代码。
The source code of the web site and xdebug, phpunit are on a linux server.now I start apache and open the web site. 该网站的源代码和xdebug,phpunit在Linux服务器上。现在我启动apache并打开该网站。 I just don't know how to get the coverage of my manual test.
我只是不知道该如何覆盖我的手动测试。
what I expect is this: 我期望的是:
Dose phpunit + xdebug can do this? 剂量phpunit + xdebug可以做到吗? I need a report, html is good.
我需要一份报告,html很好。
PS. PS。 I am a newer... my English and skill is not very well... so Please be patient, Thanks very much
我是新手...我的英语和技能不是很好...所以请耐心等待,非常感谢
Simply follow all steps in the PHPUnit Manual, Code-Coverage Analysis . 只需按照PHPUnit手册代码覆盖分析中的所有步骤进行操作 。
If you want to do code coverage with manual fronted tests. 如果要使用手动前端测试进行代码覆盖。 Hava a look at Selenium IDE together with PHP Unit .
让我们一起看看Selenium IDE和PHP Unit 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.