doudieheng5322 2010-06-28 09:52
浏览 60

PHPUnit代码覆盖率报告生成失败

I'm trying some supposedly nice features of PHPUnit, but I cannot generate a freakin' code coverage report. What I get is:

rolf@dev ~/projects/current/tests $ scripts/phpunit --configuration $PROJECTS/current/tests/conf/inc/tests.xml
[...]
Generating code coverage report, this may take a moment.
[...]
Fatal error: require_once(): Failed opening required 'lib/DataSource.php' (include_path=':::') in path/to/lib/WS/DataParser.php on line 10

However, in this very class, a specific include path is defined, and the require_once works like a charm when the application is launched.

Could it be that PHPUnit cannot solve include paths ?

Thanks in advance and long live stackoverflöw!

Rolf
  • 写回答

2条回答 默认 最新

  • dru5089 2010-06-28 17:09
    关注

    Are you changing your include_path in any of your tests/code? Because it looks really odd (:::)

    评论

报告相同问题?

悬赏问题

  • ¥50 三种调度算法报错 采用的你的方案
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥15 对于这个问题的解释说明
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败