0

运行命令时phpunit --bootstrap="TestHelper.php" --coverage-clover coverage.xml --whitelist="../../../" --debug --log-junit result.xml ./

它生成 result.xml 但控制台在此行之后卡住了。 生成 Clover XML 格式的代码覆盖率报告...

注意:我已经检查了关于 stackoverflow 的上一个问题。

我的 phpunit.xml :

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./TestHelper.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         verbose="true"
         colors="false"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="true">
    <testsuite name="Phalcon - Testsuite">
        <directory>./</directory>
    </testsuite>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="false">
            <directory suffix=".php">../app/repositories/Account</directory>
            <directory suffix=".php">../app/repositories/Call</directory>
            <directory suffix=".php">../app/repositories/Credit</directory>
            <directory suffix=".php">../app/repositories/User</directory>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-clover" target="./coverage.xml"/>
        <log type="junit" target="./results.xml" logIncompleteSkipped="false"/>
    </logging>

</phpunit>
4

0 回答 0