wdio.remote.conf.js 1.8 KB

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