wdio.remote.conf.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: '40.0', platform: 'Linux' },
  14. { browserName: 'firefox', version: '61.0', platform: 'Windows 10' },
  15. { browserName: 'internet explorer', version: '10.0', platform: 'Windows 8' },
  16. { browserName: 'internet explorer', version: '11.0', platform: 'Windows 10' },
  17. { browserName: 'chrome', version: '70.0', platform: 'Windows 10' },
  18. { browserName: 'MicrosoftEdge', version: '14', platform: 'Windows 10' },
  19. { browserName: 'MicrosoftEdge', version: '17', platform: 'Windows 10' },
  20. // { browserName: 'safari', version: '11.0', platform: 'macOS 10.12' },
  21. // { browserName: 'safari', version: '10.0', platformName: 'iOS', platformVersion: '10.0', deviceOrientation: 'portrait', deviceName: 'iPhone 6 Simulator', appiumVersion: '1.7.1' },
  22. { browserName: 'chrome', platformName: 'Android', platformVersion: '6.0', deviceOrientation: 'portrait', deviceName: 'Android Emulator' }
  23. ].map(createCapability),
  24. // If you only want to run your tests until a specific amount of tests have failed use
  25. // bail (default is 0 - don't bail, run all tests).
  26. bail: 3,
  27. // Set a base URL in order to shorten url command calls. If your url parameter starts
  28. // with "/", then the base url gets prepended.
  29. baseUrl: 'http://localhost',
  30. // Test runner services
  31. // Services take over a specific job you don't want to take care of. They enhance
  32. // your test setup with almost no effort. Unlike plugins, they don't add new
  33. // commands. Instead, they hook themselves up into the test process.
  34. services: ['static-server', 'sauce', new CompanionService()],
  35. user: process.env.SAUCE_USERNAME,
  36. key: process.env.SAUCE_ACCESS_KEY
  37. })