首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Reports PHPUnit ZendFramework

Reports PHPUnit ZendFramework
EN

Stack Overflow用户
提问于 2011-09-24 02:27:44
回答 2查看 288关注 0票数 0

我使用netbeans通过zendframework运行phpunit测试,但是没有生成报告。该文件夹已创建,但没有报告。

我的直接结构:

代码语言:javascript
复制
-application
--models
--modules
-library
-log
--report
-bootstrap.php
-phpunit.xml

phpunit.xml

代码语言:javascript
复制
<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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-10-04 06:15:42

我想通了,我试着从终点站跑出来。它抛出了一个内存异常,我增加了php内存限制,现在运行良好。

票数 0
EN

Stack Overflow用户

发布于 2011-09-24 21:28:58

我也遇到过这个问题,如果我没记错的话,它与xdebug (或类似的)没有运行有关-但在我的例子中,命令行工具抛出了一些错误。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7533304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档