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

Cloud testing

tudorilisoi edited this page Nov 6, 2013 · 14 revisions

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.

1. get a saucelabs account

Open source projects can use the awesome free for open source version. Users with a saucelabs account already can skip this step.

2. configure your account

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

3. select browsers to test

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 available on saucelabs.

4. run zuul

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.

Done

Once you are happy with your saucelabs tests (all passing I hope), you are ready to hook up the last piece: travis-ci.

Clone this wiki locally