wdio.remote.conf.js 2.1 KB

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