WebdriverIO service for better Sauce Labs integration
npm install wdio-sauce-serviceWDIO Sauce Labs Service
=======================
 
*
> 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.
``json`
{
"devDependencies": {
"wdio-sauce-service": "~0.4.4"
}
}
You can simple do it by:
`bash`
npm 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 automaticallysauceConnect: true
use Sauce Labs to run your integration tests. If you want to use Sauce Connect
you just need to set .
`js`
// wdio.conf.js
export.config = {
// ...
services: ['sauce'],
user: process.env.SAUCE_USERNAME,
key: process.env.SAUCE_ACCESS_KEY,
sauceConnect: true,
// ...
};
Type: String
Type: String
Type: Booleanfalse
Default:
Type: Object{}
Default:
All commands can be found in the package.json. The most important are:
Watch changes:
`sh`
$ npm run watch
Run tests (there are non yet, please help to get unit test - see here):
`sh`
$ npm test
Build package:
`sh``
$ npm build
----
For more information on WebdriverIO see the homepage.