假设我将以下命令传递给PHPUnit:
phpunit tests --coverage-clover build/logs/clover.xml在哪里可以看到实际的clover.xml文件?我到处都找过了,但找不到。我也找不到/build/logs目录。
我的测试运行良好,因为我看到了以下输出:Tests: 1, Assertions: 1, Failures: 1.
发布于 2014-10-01 06:25:43
当您执行phpunit时,您要传递的路径:build/log/clover.xml相对于当前dir (因为它不是以/开头)。
如果您希望路径为/build/log/clover.xml,只需将斜杠添加到命令参数:
phpunit tests --coverage-clover /build/logs/clover.xmlhttps://stackoverflow.com/questions/26130869
复制相似问题