doxp30826 2014-09-30 22:01 采纳率: 0%
浏览 11

PHPUnit在哪里写clover.xml?

Let's say I pass the following command to PHPUnit:

phpunit tests --coverage-clover build/logs/clover.xml

Where I can go to see the actual clover.xml file? I've looked everywhere, but I can't find it. I also can't find a /build/logs directory.

My tests run fine, as I see the following output: Tests: 1, Assertions: 1, Failures: 1.

  • 写回答

1条回答 默认 最新

  • doumei7420 2014-10-01 06:25
    关注

    The path you're passing: build/logs/clover.xml is relative to the current dir when you execute phpunit (because it does not start with / ).

    If you want the path to be /build/logs/clover.xml, just add the slash to the command parameter:

    phpunit tests --coverage-clover /build/logs/clover.xml
    
    评论

报告相同问题?

悬赏问题

  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置