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

zend framework 2 + phpunit +多个模块+持续集成,第1张

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>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5639404.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存