-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Update functional tests README.md (#768)
- Loading branch information
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |