From 23958ec6579573b4734d7c8fbba486a8d73d8711 Mon Sep 17 00:00:00 2001 From: diosmosis <benakamoorthi@fastmail.fm> Date: Tue, 11 Mar 2014 01:51:05 +0000 Subject: [PATCH] Add initial code to allow custom fixtures for screenshot tests & allow plugins to execute only plugin tests in travis. --- tests/PHPUnit/travis.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/PHPUnit/travis.sh b/tests/PHPUnit/travis.sh index cb168f474b..bf0c2b5428 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 -- GitLab