脚本宝典收集整理的这篇文章主要介绍了php – 仅生成刚刚测试过的内容,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
<!-- http://www.PHPunit.de/manual/current/en/apPEndixes.configuration.html --> <PHPunit backupGlobals = "false" backupstaticAttributes = "false" colors = "true" convertErrorsToExceptions = "true" convertNoticesToExceptions = "true" convertWarningsToExceptions = "true" PRocessIsolation = "false" stopOnFailure = "false" SyntaxCheck = "false" bootstrap = "Bootstrap.PHP" > <testsuites> <testsuite name="Application Module Suite Test"> <directory>./Module1Test</directory> <directory>./Module2Test</directory> <directory>./Module3Test</directory> </testsuite> </testsuites> <filter> <whitelist> <directory>../module/Module1</directory> <directory>../module/Module2</directory> <directory>../module/Module3</directory> </whitelist> </filter> </PHPunit>
有没有办法动态地生成我现在正在测试的内容?@H_502_3@
例
对于下面的命令,我想仅为Controller / ExampleController.PHP路径生成覆盖.@H_502_3@
PHPunit Controller/ExampleController.PHP --coverage-html ~/Desktop/tests
我正在使用PHPUnit 4.8和3.7,Sublime Text Editor,应用程序正在使用Zend Framework 2.@H_502_3@
请参阅此链接以获取示例:https://phpunit.de/manual/current/en/code-coverage-analysis.html#code-coverage-analysis.specifying-covered-methods.examples.BankAccountTest.php@H_502_3@
这对你的场景有用吗?@H_502_3@
以上是脚本宝典为你收集整理的php – 仅生成刚刚测试过的内容全部内容,希望文章能够帮你解决php – 仅生成刚刚测试过的内容所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。