Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Testing

James Pamplin edited this page Jun 30, 2015 · 3 revisions

Testing Locally

# Mac only
brew install chromedriver

# or install via npm (can also be installed globally with -g)
npm install chromedriver

then try: npm test

If you get any errors first try changing the http server port:

./setup.sh
# Defaults: TEST_SERVER_PORT=8880
TEST_SERVER_PORT=8080 \
npm test

To test with firefox (no driver required) please run:

./setup.sh
BROWSER_NAME='firefox' \
npm test

Testing via Sauce Labs

You will need to download Sauce Connect.

TODO: Add steps for downloading Sauce Connect, i.e. https://github.com/angular/angular.js/blob/master/lib/sauce/sauce_connect_setup.sh

./setup.sh
export SAUCE_USERNAME='scribe-ci' SAUCE_ACCESS_KEY='4be9eeed-61de-4948-b18d-f7f655e9e4b0'

# Sauce Connect v3
java -jar ~/Downloads/Sauce-Connect-latest/Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY
# Sauce Connect v4
~/Downloads/sc-4.1-osx/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY

# Defaults: TEST_SERVER_PORT=8080
TEST_SERVER_PORT=8080 \
RUN_IN_SAUCE_LABS=true \
BROWSER_NAME='chrome' \
BROWSER_VERSION='32' \
PLATFORM='WINDOWS' \
npm test
Clone this wiki locally