Skip to content

Instantly share code, notes, and snippets.

@nilsel
Last active December 12, 2015 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilsel/4745855 to your computer and use it in GitHub Desktop.
Save nilsel/4745855 to your computer and use it in GitHub Desktop.
testem.yml example-configuration w/browserstack (https://github.com/airportyh/testem). Added some more browsers while I was at it.
framework: qunit
test_file: test.html #this does not work: run testem with option -t test.html
on_start:
command: browserstack tunnel localhost:7357
wait_for_text: You can now access your local server(s) in our remote browser
port: 7357
# important: route /js/ so the test-scripts can read them
routes:
"/js": "../../../js"
launchers:
bs_opera:
command: browserstack launch --attach opera:12.11 http://localhost:7357
protocol: browser
bs_firefox:
command: browserstack launch --attach firefox:16.0 http://localhost:7357
protocol: browser
bs_chrome_25:
command: browserstack launch --attach chrome:25.0 http://localhost:7357
protocol: browser
bs_safari_5:
command: browserstack launch --attach safari:5.0 http://localhost:7357
protocol: browser
bs_safari_51:
command: browserstack launch --attach safari:5.1 http://localhost:7357
protocol: browser
bs_safari_6:
command: browserstack launch --attach safari:6.0 http://localhost:7357
protocol: browser
bs_ie_7:
command: browserstack launch --attach ie:7.0 http://localhost:7357
protocol: browser
bs_ie_8:
command: browserstack launch --attach ie:8.0 http://localhost:7357
protocol: browser
bs_ie_9:
command: browserstack launch --attach ie:9.0 http://localhost:7357
protocol: browser
bs_ie_10:
command: browserstack launch --attach ie:10.0 http://localhost:7357
protocol: browser
bs_samsung_tab:
command: browserstack launch --attach "Samsung Galaxy Tab 10.1" http://localhost:7357
protocol: browser
bs_ipad_32:
command: browserstack launch --attach "iPad" http://localhost:7357
protocol: browser
bs_ipad_6:
command: browserstack launch --attach "iPad 3rd (6.0)" http://localhost:7357
protocol: browser
bs_iphone_5:
command: browserstack launch --attach "iPhone 5" http://localhost:7357
protocol: browser
bs_iphone_5:
command: browserstack launch --attach "iPhone 5" http://localhost:7357
protocol: browser
bs_iphone_3GS:
command: browserstack launch --attach "iPhone 3GS" http://localhost:7357
protocol: browser
bs_google_nexus:
command: browserstack launch --attach "Google Nexus 7" http://localhost:7357
protocol: browser
# add "ci" to your args to run in CI-mode
launch_in_ci: [bs_opera, bs_chrome_25, bs_firefox, bs_safari_51, bs_safari_5, bs_ie_8, bs_ie_9, bs_ie_7, bs_ipad_6, bs_ipad_32, bs_iphone_5, bs_iphone_3GS, bs_google_nexus]
# regular dev-mode with cli-interface
launch_in_dev: [bs_opera, bs_ie_10, bs_iphone_5, bs_ie_7]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment