diff --git a/tests/PHPUnit/travis.sh b/tests/PHPUnit/travis.sh index cb168f474b4486b57a95ebc2abbf8246bde24b04..bf0c2b5428ca3434dd7924ab07cc6ec3a35b34dd 100755 --- a/tests/PHPUnit/travis.sh +++ b/tests/PHPUnit/travis.sh @@ -30,12 +30,19 @@ then if [ -n "$PLUGIN_NAME" ] then - phantomjs ../lib/screenshot-testing/run-tests.js --use-github-expected $PLUGIN_NAME + fixture=${PLUGIN_NAME:-OmniFixture} + + phantomjs ../lib/screenshot-testing/run-tests.js --use-github-expected --fixture=$fixture $PLUGIN_NAME else phantomjs ../lib/screenshot-testing/run-tests.js --store-in-ui-tests-repo --use-github-expected fi else - phpunit --configuration phpunit.xml --testsuite $TEST_SUITE --colors + if [ -n "$PLUGIN_NAME" ] + then + phpunit --configuration phpunit.xml --testsuite $TEST_SUITE --colors --group $PLUGIN_NAME + else + phpunit --configuration phpunit.xml --testsuite $TEST_SUITE --colors + fi fi else phpunit --configuration phpunit.xml --coverage-text --colors