【发布时间】:2013-06-08 15:44:21
【问题描述】:
我想查看在 phpunit 运行期间当前执行的测试。
我使用 --debug 参数但仍然只能得到点:
phpunit.xml的内容:
<phpunit backupGlobals="true"
bootstrap="tests/bootstrap.php"
backupStaticAttributes="false"
cacheTokens="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
mapTestClassNameToCoveredClassName="false"
printerClass="PHPUnit_TextUI_ResultPrinter"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader"
strict="false"
verbose="true">
<testsuites>
<testsuite name="foo Tests">
<directory>./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="./clover.xml"/>
</logging>
</phpunit>
这可能是什么原因?
【问题讨论】:
-
你不是在寻找
--verbose吗? -
你想重新表述这个问题,因为不清楚你想要什么。 (开关列表在这里,顺便说一句:phpunit.de/manual/3.6/en/textui.html)
-
@Denis,verbose 在他的 phpunit.xml 中已经是真的了
-
在 PHPUNIT 4.8.30(以及更高版本,大概)中,--debug 适用于此。
-
我会这样表述“运行 PHPUnit 测试时如何停止默认的点进度输出?”