Name: wdio-sauce-service
Owner: WebdriverIO
Description: WebdriverIO service for better Sauce Labs integration
Created: 2015-11-25 02:50:41.0
Updated: 2018-05-23 22:46:24.0
Pushed: 2018-02-01 18:59:23.0
Homepage: http://webdriver.io
Size: 96
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A WebdriverIO service. It updates the job metadata ('name', 'passed', 'tags', 'public', 'build', 'custom-data') and runs Sauce Connect if desired.
The easiest way is to keep wdio-sauce-service
as a devDependency in your package.json
.
evDependencies": {
"wdio-sauce-service": "~0.4.4"
You can simple do it by:
install wdio-sauce-service --save-dev
Instructions on how to install WebdriverIO
can be found here.
In order to use the service you need to set user
and key
in your wdio.conf.js
file. It will automatically
use Sauce Labs to run your integration tests. If you want to use Sauce Connect
you just need to set sauceConnect: true
.
dio.conf.js
rt.config = {
...
rvices: ['sauce'],
er: process.env.SAUCE_USERNAME,
y: process.env.SAUCE_ACCESS_KEY,
uceConnect: true,
...
Your Sauce Labs username.
Type: String
Your Sauce Labs access key.
Type: String
If true it runs Sauce Connect and opens a secure connection between a Sauce Labs virtual machine running your browser tests.
Type: Boolean
Default: false
Apply Sauce Connect options (e.g. to change port number or logFile settings). See this list for more information.
Type: Object
Default: {}
All commands can be found in the package.json. The most important are:
Watch changes:
m run watch
Run tests (there are non yet, please help to get unit test - see here):
m test
Build package:
m build
For more information on WebdriverIO see the homepage.