Skip to content

Commit 0219065

Browse files
axe312gerdignifiedquire
authored andcommittedAug 22, 2017
docs(readme): add hint to platform configurator
Adds an Android example, also.
1 parent bae326f commit 0219065

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎README.md

+10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ npm install karma-sauce-launcher --save-dev
2323

2424
This launcher is typically used in CI to run your unit tests across many browsers and platforms on Sauce Labs. However, you can also use it locally to debug tests in browsers not available on your machine. It is expected that you are already familiar with Karma when configuring this launcher, so if you are new to Karma, head over to the [Karma website](http://karma-runner.github.io/).
2525

26+
The [Sauce Labs platform configurator](https://wiki.saucelabs.com/display/DOCS/Platform+Configurator/#/) can help to find the correct configuration for your desired test platform.
27+
2628
### Adding karma-sauce-launcher to an existing Karma config
2729

2830
To configure this launcher, you need to add two properties to your top-level Karma config, `sauceLabs` and `customLaunchers`, set the `browsers` array to use Sauce Labs browsers, and add the `sauceLabs` reporter.
@@ -56,6 +58,14 @@ module.exports = function(config) {
5658
browserName: 'internet explorer',
5759
platform: 'Windows 8.1',
5860
version: '11'
61+
},
62+
sl_android: {
63+
base: 'SauceLabs',
64+
browserName: 'Browser',
65+
platform: 'Android',
66+
version: '4.4',
67+
deviceName: 'Samsung Galaxy S3 Emulator',
68+
deviceOrientation: 'portrait'
5969
}
6070
}
6171

0 commit comments

Comments
 (0)
Please sign in to comment.