aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJulie2014-01-30 18:49:58 -0800
committerIgor Minar2014-02-05 15:39:59 -0800
commit0e85ca9ddb5f259908400463764fd6141977b341 (patch)
tree88f0a17d6e1830a75c4c80451e7a84e559c95b2f /scripts
parente7face4728d3aed6dc089966d489d0c93b65913d (diff)
downloadangular.js-0e85ca9ddb5f259908400463764fd6141977b341.tar.bz2
chore(testing): run end to end tests on firefox and safari as well as chrome
Update the Travis and Jenkins configs to run protractor tests on Safari and Firefox as well, and make the Travis tests run output XML and turn off color. Fix tests which were failing in Firefox due to clear() not working as expected. Fix tests which were failing in Safari due to SafariDriver not understanding the minus key, and disable tests which SafariDriver has no support for.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/travis/build.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh
index 32cd8af8..b28b8e02 100755
--- a/scripts/travis/build.sh
+++ b/scripts/travis/build.sh
@@ -10,10 +10,13 @@ if [ $JOB = "unit" ]; then
grunt test:promises-aplus
grunt test:unit --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots
elif [ $JOB = "e2e" ]; then
- grunt test:protractor --sauceUser $SAUCE_USERNAME \
+ export SAUCE_OPTIONS="--sauceUser $SAUCE_USERNAME \
--sauceKey $SAUCE_ACCESS_KEY \
--capabilities.tunnel-identifier=$TRAVIS_JOB_NUMBER \
- --capabilities.build=$TRAVIS_BUILD_NUMBER
+ --capabilities.build=$TRAVIS_BUILD_NUMBER"
+ grunt test:protractor $SAUCE_OPTIONS
+ grunt test:protractor $SAUCE_OPTIONS --browser=firefox
+ grunt test:protractor $SAUCE_OPTIONS --browser=safari
else
echo "Unknown job type. Please set JOB=unit or JOB=e2e."
fi