栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

zend framework 2 + phpunit +多个模块+持续集成

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

zend framework 2 + phpunit +多个模块+持续集成

当我发现这个问题时,我忘了回答自己的问题,我向忘了的社区表示歉意……但是,对于每个人来说,这是如何使它起作用的。

build.xml

<target name="phpunit" description="Run unit tests with PHPUnit">    <apply executable="../vendor/bin/phpunit" parallel="false">        <fileset dir="${env.WORKSPACE}/module" > <include name="**/test/phpunit.xml"/>        </fileset>        <arg value="--configuration" />        <srcfile/>    </apply></target>

以及每个模块的phpunit.xml

<phpunit bootstrap="Bootstrap.php">    <testsuites>        <testsuite name="Application"> <directory>./</directory>        </testsuite>    </testsuites><!-- Filters only matter for pre coverage reporting -->    <filter>        <blacklist> <directory>../../../vendor/</directory> <directory>./</directory> <file>../Module.php</file>        </blacklist>    </filter>    <logging>        <log type="coverage-html" target="../../../build/coverage" title="Application Module" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70"/>        <log type="coverage-clover" target="../../../build/logs/clover-Application.xml"/>        <log type="junit" target="../../../build/logs/junit-Application.xml" logIncompleteSkipped="false"/>    </logging></phpunit>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/633533.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号