当我发现这个问题时,我忘了回答自己的问题,我向忘了的社区表示歉意……但是,对于每个人来说,这是如何使它起作用的。
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>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)