dongmei8071 2013-05-20 17:36
浏览 113
已采纳

PHPUnit - 覆盖配置文件的覆盖率选项

I use PHPUnit to test my projects, using a phpunit.xml.dist config file.

The default configuration for all my projects is set to generate html code coverage reports.

Is there anyway I can run the phpunit command at a given time without generating the code coverage reports without having to change the config file?

This would be something like a --no-coverage option.

  • 写回答

2条回答 默认 最新

  • duanniedang3946 2013-05-23 20:39
    关注

    I couldn't find anything from the documentation to reference any sort of functionality that would provide the option to be a toggle.

    You could point PHPunit to a second phpunit.xml that doesn't have the code coverage

    You can see this very question being asked prior.

    Is there a way to disable code coverage in PHPUnit for a single test?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏