Laravel代码覆盖范围

时间:2013-12-19 12:52:40

标签: php laravel phpunit

我正在尝试获取我的代码覆盖率报告,以涵盖我的所有laravel应用程序代码(控制器和模型)。由于某种原因,它只涉及一个测试。这个配置下面有什么问题吗?

<phpunit colors="true"
         bootstrap="/Users/bob/projects/leonardo2/laravel/cli/tasks/test/phpunit.php"
         backupGlobals="false">

  <testsuites>
    <testsuite name="Test Suite">
                        <directory suffix=".test.php">/Users/bob/projects/leonardo2/application/tests</directory>
                  </testsuite>
  </testsuites>

  <filter>
    <blacklist>       
        <exclude>
          <directory suffix=".test.php">/Users/bob/projects/leonardo2/application/tests</directory>
        </exclude>
    </blacklist>
    <whitelist>
      <exclude>
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/config</directory>       
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/views</directory>
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/migrations</directory>
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/libraries</directory>
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/tasks</directory>
        <directory suffix=".php">/Users/bob/projects/leonardo2/application/language</directory>
      </exclude>
    </whitelist>
  </filter>

   <logging>
      <log type="coverage-html" target="./storage/work/report/" charset="UTF-8"
       highlight="false" lowUpperBound="35" highLowerBound="70"/>
    </logging>
</phpunit>

0 个答案:

没有答案