# setup and install protractor for testing
npm install -g protractor
npm install -g karma-cli
webdriver-manager update
# prepare local application
npm install
bower install
git submodule init
git submodule updateFinally, run npm test to ensure tests pass.
download driver from http://www.browserstack.com/local-testing#command-line
# setup BrowserStack by adding the following to ~/.bash_profile
# your info may be found at https://www.browserstack.com/accounts/automate
export BROWSERSTACK_KEY=Value
export BROWSERSTACK_USER=Username
# reload your bash profile
source ~/.bash_profileUpdate SublimeText Preferences.sublime-settings and add "test/api-server" to the "folder_exclude_patterns" option.
# unit testing
karma start
# end to end testing locally
npm test
# end to end testing on BrowserStack
# start the driver downloaded from BrowserStack
./BrowserStackLocal $BROWSERSTACK_KEY 8080,0
protractor test/protractor.conf.browserstack.js
For running all the test server and using BrowserStack use:
./BrowserStackLocal $BROWSERSTACK_KEY 9001,0,9002,0,9003,0,9004,0,9005,0,9006,0,9007,0,9008,0,9009,0,9010,0