Cross browser testing for your ember-cli app using SauceLabs.
ember install ember-cli-sauce
- Get a SauceLabs account.
- Make sure Sauce credentials are set in env:
SAUCE_USERNAME
- your SauceLabs usernameSAUCE_ACCESS_KEY
- your SauceLabs API/Access key.
- Add browsers using
ember sauce --help
- During test runs an open Sauce Connect tunnel is required. You can create a tunnel using the following command:
ember start-sauce-connect
Some browsers (e.g. Safari & Edge) don't work with the default testem port and require a different port for now.
ember test --test-port 7000
Please vote on https://saucelabs.ideas.aha.io/ideas/SLIDEA-I-146, to have this working out of the box.
- Add
SAUCE_USERNAME
,SAUCE_ACCESS_KEY
and the following script to your.travis.yml
before_script:
- ember sauce:connect
after_script:
- ember sauce:disconnect
- Happy testing!
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.