wdio.remote.conf.js 1.7 KB

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