|
1 | 1 | # testem-browserstack |
2 | | - |
3 | 2 | [Testem](https://github.com/testem/testem) Integration with BrowserStack. |
4 | 3 |
|
5 | | -## Setup |
| 4 | + |
6 | 5 |
|
7 | | -- Clone the repo |
8 | | -- Install dependencies `npm install` |
9 | | -- Update `testem.json` file with your BrowserStack Username and Access Key. (These can be found in the [settings](https://www.browserstack.com/accounts/settings) section on BrowserStack accounts page) |
10 | | -- Alternatively, you can export the environment variables for the Username and Access Key of your BrowserStack account. `export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>` |
| 6 | +## Setup |
| 7 | +* Clone the repo |
| 8 | +* Install dependencies `npm install` |
| 9 | +* Update `testem.json` file with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) |
11 | 10 |
|
12 | | -### Run the tests |
| 11 | +## Running yourtests |
| 12 | +* To run a single test, run `npm run single` |
| 13 | +* To run parallel tests, run `npm run parallel` |
13 | 14 |
|
14 | | -- To run single test, run `npm run single` |
15 | | -- To run parallel tests, run `npm run parallel` |
| 15 | +## Notes |
| 16 | +* You can view your test results on the [BrowserStack automate dashboard](https://www.browserstack.com/automate) |
| 17 | +* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/node#setting-os-and-browser) |
| 18 | +* You can export the environment variables for the Username and Access Key of your BrowserStack account |
| 19 | + |
| 20 | + ``` |
| 21 | + export BROWSERSTACK_USERNAME=<browserstack-username> && |
| 22 | + export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key> |
| 23 | + ``` |
| 24 | + |
| 25 | +## Additional Resources |
| 26 | +* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities) |
| 27 | +* [Browsers & mobile devices for JavaScript testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=js_testing) |
| 28 | +* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api) |
| 29 | + |
0 commit comments