Skip to content

Commit

Permalink
Docs: Update functional tests README.md (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyjin authored Apr 12, 2018
1 parent b80dafc commit 5ed871e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions functional-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Running tests locally

## Saucelabs
## SauceLabs
1) Download the [saucelabs proxy](https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy)
2) Run ```yarn functional-tests``` to start a local server on localhost:8000
3) Run the proxy ```./bin/sc -u SAUCELABS_USER_NAME -k SAUCELABS_ACCESS_KEY -N -i test``` to allow saucelabs to access your localhost
4) Run the tests
```SAUCE_USERNAME=SAUCELABS_USER_NAME SAUCE_ACCESS_KEY=SAUCELABS_ACCESS_KEY TRAVIS_JOB_NUMBER=TUNNEL_ID node ./node_modules/codeceptjs/bin/codecept.js run --verbose``` where SAUCE_USERNAME, SAUCELABS_ACCESS_KEY can be found in saucelabs website. TUNNEL_ID is a unique identifier such as your username.

## local selenium and browser testing (without saucelabs)
Make sure selenium webdriver is running and run ```node ./node_modules/codeceptjs/bin/codecept.js run --verbose```
## Selenium (without SauceLabs)
1) Install selenium-standalone `npm install selenium-standalone@latest -g`
2) Install Selenium drivers `selenium-standalone install`
3) Start Selenium `selenium-standalone start`
4) In a separate terminal, build Preview `yarn run build`
5) Run functional tests `yarn run functional-tests`

0 comments on commit 5ed871e

Please sign in to comment.