Running test using Testem on BrowserStack can be done by cloning this repo and following the below steps:
Testem depends internally on browserstack-cli for running the tests.
Please install and setup browserstack-cli before continuing. You should see something similar when setting up browserstack-cli.
Username: <your-username>
Password: <your-api-key/browserstack-password>
Tunnel private key (see while logged in http://www.browserstack.com/local-testing): <your-tunnel-key>
Tunnel API key (see while logged in http://www.browserstack.com/automated-browser-testing-api#automated-local-testing): <your-api-key>
Wrote <your-home-directory>/.browserstack/browserstack.json
Downloading BrowserStackTunnel.jar [===================] 100%
Please install testem before proceeding.
From the root of this repository run:
testem ci -l bs_chrome
P.S. All launchers are defined with 'launch_in_ci'. You will probably want to edit the testem.yml.
Most of the code in this repo is taken from samples in testem repository.
If you are getting any errors with the tunnel setup. Then try downloading the jar again and placing it in <your-home-directory>/.browserstack
location.