我使用netbeans通过zendframework运行phpunit测试,但是没有生成报告。该文件夹已创建,但没有报告。
我的直接结构:
-application
--models
--modules
-library
-log
--report
-bootstrap.php
-phpunit.xmlphpunit.xml
<phpunit bootstrap="./bootstrap.php">
<testsuite name="Application Test Suite">
<directory>./application</directory>
</testsuite>
<testsuite name="Library Test Suite">
<directory>./library</directory>
</testsuite>
<filter>
<!-- If Zend Framework is inside your project's library, uncomment this filter -->
<!--
<whitelist>
<directory suffix=".php">../../library/Zend</directory>
</whitelist>
-->
</filter>
<logging>
<log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" highlight = "true" lowUpperBound="50" highLowerBound="80" />
<log type="testdox" target="./log/testdox.html" />
</logging>
测试运行正常,但是我应该如何配置我的phpunit.xml来生成报告?
我的PHPUnit版本是3.5.15
发布于 2011-10-04 06:15:42
我想通了,我试着从终点站跑出来。它抛出了一个内存异常,我增加了php内存限制,现在运行良好。
发布于 2011-09-24 21:28:58
我也遇到过这个问题,如果我没记错的话,它与xdebug (或类似的)没有运行有关-但在我的例子中,命令行工具抛出了一些错误。
https://stackoverflow.com/questions/7533304
复制相似问题