【发布时间】:2010-08-27 18:07:23
【问题描述】:
我的 PHPUnit 设置和覆盖率报告在没有白名单过滤器的情况下工作正常。但是,一旦我添加了一个,报告似乎只是部分生成,好像 PHPUnit 意外退出一样。我没有收到任何错误或警告。
我的配置如下:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./bootstrap.php"
colors="true">
<testsuites>
<testsuite name="...">
<testsuite name="...">
<directory>./path/to/suite</directory>
</testsuite>
<testsuite name="...">
<directory>./path/to/suite2</directory>
</testsuite>
<testsuite name="...">
<directory>./path/to/suite3</directory>
</testsuite>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">../path/to/files</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="log/" charset="UTF-8" yui="true" />
</logging>
</phpunit>
知道可能出了什么问题吗?
【问题讨论】:
标签: php unit-testing code-coverage phpunit