DEV Community

loading...

Saucelabs Cheat Sheet

hoanganhlam profile image Lâm ・1 min read

Getting started

Sign up for opensauce:

Install zuul:

npm i -g zuul
Enter fullscreen mode Exit fullscreen mode

Configure zuul:

# ~/.zuulrc
sauce_username: me
sauce_key: abc12348-e3e2-...
Enter fullscreen mode Exit fullscreen mode

Add .zuul.yml to your project:

# .zuul.yml
ui: mocha-bdd
browsers:
  - name: chrome
    version: latest
  - name: ie
    version: 6..latest
  - name: firefox
    version: latest
Enter fullscreen mode Exit fullscreen mode

Try to run tests:

zuul test/test.js
zuul --local test/test.js
Enter fullscreen mode Exit fullscreen mode

Reference:

Discussion (0)

Forem Open with the Forem app