MTAF には、それを可能にする runtests.sh スクリプトがあります。複数の構成またはブラウザーを同時に実行する場合は、パラメーターをスクリプトに渡すことができます。パラメータを渡すには、次のテンプレートを使用します。
runtests.sh application:browser, application:browser
application は、デフォルト アプリケーションへのリンクの名前です (デフォルト: *mage)。
次のようなコマンドが必要です。
/path/to/script/runtests.sh mage:googlechrome, mage:firefox
そして、Jenkins 構成の phpunit の値として使用します。今、あなたはこのようなものを持っています:
<target name="phpunit" description="Run unit tests with PHPUnit">
<exec command="phpunit --configuration=${basedir}/tests/phpunit.xml
--log-junit ${basedir}/build/logs/junit.xml
--coverage-clover ${basedir}/build/logs/clover.xml
--coverage-html ${basedir}/build/coverage"/>
</target>
上記のコマンドに変更すると、うまくいくはずです。最後に、この phpunit 引数をすべて保持したい場合は、ファイル runtests.sh を開き、関数 runTest() を見つけて行を変更します。
eval exec "/usr/bin/phpunit -c ${phpunitArr[${i}]}/phpunit.xml &"
あなたのphpunit引数に合わせて:
eval exec "/usr/bin/phpunit -c ${phpunitArr[${i}]}/phpunit.xml --log-junit /path/to/build/logs/junit.xml --coverage-clover /path/to/build/logs/clover.xml &"