脚本宝典收集整理的这篇文章主要介绍了PHPUnit代码覆盖,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我的问题是,我想知道为什么Code Coverage不能在PHPunit.XMl中的LOGging标签中设置.
但是,当我运行PHPunit –coverage< dir>
我的PHPunit的日志记录部分如下:
<PHPunit bootstrap="./application/bootstrap.PHP" colors="true"> <testsuite name="CI Test Suite"> <directory>./</directory> </testsuite> <testsuite name="Library Test Suite"> <directory>./library</directory> </testsuite> <filter> <whitelist> <directory suffix=".PHP">../application/</directory> <exclude> <directory suffix=".phtML">../application</directory> <file>../application/Bootstrap.PHP</file> <file>../application/controllers/ErrorController.PHP</file> </exclude> </whitelist> <logging> <log tyPE="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80" /> <log type="testdox" target="./log/testdox.html" /> </logging> </filter> </PHPunit>
有人遇到过吗?那可能是什么问题?
<PHPunit bootstrap="./bootstrap.PHP" colors="false"> <testsuite name="HSSTests"> <directory>./</directory> </testsuite> <filter> <whitelist> <directory suffix=".PHP">d:/wamp/app_hss/</directory> <exclude> <directory suffix=".phtml">d:/wamp/app_hss/</directory> <directory suffix=".PHP">d:/wamp/app_hss/tests/</directory> </exclude> </whitelist> </filter> <logging> <log type="coverage-html" target="./log/codeCoverage" charset="UTF-8" yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/> <log type="testdox-html" target="./log/testdox.html" /> </logging> </PHPunit>
您可能需要的所有信息在PHPunit manual.
以上是脚本宝典为你收集整理的PHPUnit代码覆盖全部内容,希望文章能够帮你解决PHPUnit代码覆盖所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。