加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

cakephp – 如何从phpunit覆盖率报告中排除目录

发布时间:2020-12-13 14:15:44 所属栏目:PHP教程 来源:网络整理
导读:我在写信- ?xml version="1.0" encoding="UTF-8"? testsuites testsuite name="My Test Suite" directory suffix=".php"Test/Case/Model/directory excludeTest/Case/Model/Behavior/exclude /testsuite /testsuites 但它不排除覆盖率报告中的行为.如何从覆
我在写信-
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
      <testsuite name="My Test Suite">
         <directory suffix=".php">Test/Case/Model</directory>
        <exclude>Test/Case/Model/Behavior</exclude>
      </testsuite>
    </testsuites>

但它不排除覆盖率报告中的行为.如何从覆盖率报告中排除此目录或文件?

<?xml version="1.0" encoding="utf-8"?>
<phpunit>
  <filter>
    <whitelist>
      <directory suffix=".php">../</directory>
      <exclude>
        <file>../ext_emconf.php</file>
        <directory suffix=".php">../tests</directory>
      </exclude>
    </whitelist>
  </filter>
</phpunit>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读