【发布时间】:2011-11-23 21:37:38
【问题描述】:
我正在使用 netbeans 使用 zendframework 运行 phpunit 测试,但没有生成报告。该文件夹已创建,但没有报告。
我的直接结构:
-application
--models
--modules
-library
-log
--report
-bootstrap.php
-phpunit.xml
phpunit.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
【问题讨论】:
-
phpunit的所有依赖都安装了吗?
-
您要查询哪些报告? 代码覆盖率报告?
标签: php unit-testing zend-framework netbeans phpunit