-
Notifications
You must be signed in to change notification settings - Fork 87
Cloud testing
Local testing is just the start and should be used to get your tests running and make sure they pass on your browser and in your dev environment. Great client modules should also be tested across different browsers and operating systems. For this, we will leverage saucelabs to run our same tests in the browser.
Open source projects can use the awesome free for open source version. User's with a saucelabs account already can skip this step.
Once you have a sauce account, they will assign you an access key
. Open ~/.zuulrc
with your favorite editor and make it look like the following:
sauce_username: my_awesome_username
sauce_key: 550e8400-e29b-41d4-a716-446655440000
Obviously replace with your name and key
Back in your project directory, add the following file .zuul.yml
ui: mocha-qunit
browsers:
- name: chrome
version: 27..latest
This will run our tests on the chrome
web browser and test all versions from 27 to latest availabel on saucelabs.
zuul -- test
Notice that we do not specify --local since we will run in the cloud. Zuul will create a server, establish a tunnel, and then ask saucelabs to run your tests. You can open your saucelabs dashboard to see yur tests being run. Zuul will exit when all tests are done.
Once you are happy with your saucelabs tests (all passing I hope), you are ready to hook up the last piece: travis-ci.