123456789101112131415161718192021222324252627282930313233343536 |
- const base = require('./wdio.base.conf')
- function createCapability (capability) {
- return Object.assign({
- 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
- build: process.env.TRAVIS_BUILD_NUMBER
- }, capability)
- }
- exports.config = Object.assign(base.config, {
- capabilities: [
- { browserName: 'firefox', version: '38.0', platform: 'Linux' },
- { browserName: 'internet explorer', version: '10.0', platform: 'Windows 7' },
- { browserName: 'chrome', version: '50.0', platform: 'Windows 7' },
- { browserName: 'MicrosoftEdge', version: '14.14393', platform: 'Windows 10' },
- // { browserName: 'safari', version: '11.0', platform: 'macOS 10.12' },
- { browserName: 'safari', version: '10.0', platformName: 'iOS', platformVersion: '10.0', deviceOrientation: 'portrait', deviceName: 'iPhone 6 Simulator', appiumVersion: '1.7.1' },
- { browserName: 'chrome', platformName: 'Android', platformVersion: '6.0', deviceOrientation: 'portrait', deviceName: 'Android Emulator', appiumVersion: '1.7.1' }
- ].map(createCapability),
- // If you only want to run your tests until a specific amount of tests have failed use
- // bail (default is 0 - don't bail, run all tests).
- bail: 3,
- // Set a base URL in order to shorten url command calls. If your url parameter starts
- // with "/", then the base url gets prepended.
- baseUrl: 'http://localhost',
- // Test runner services
- // Services take over a specific job you don't want to take care of. They enhance
- // your test setup with almost no effort. Unlike plugins, they don't add new
- // commands. Instead, they hook themselves up into the test process.
- services: ['static-server', 'sauce'],
- user: process.env.SAUCE_USERNAME,
- key: process.env.SAUCE_ACCESS_KEY
- })
|