wdio.remote.conf.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. const base = require('./wdio.base.conf')
  2. function createCapability (capability) {
  3. return {
  4. 'sauce:options': {
  5. tunnelIdentifier: process.env.SAUCE_TUNNEL_IDENTIFIER,
  6. build: process.env.SAUCE_BUILD,
  7. extendedDebugging: true,
  8. },
  9. ...capability,
  10. }
  11. }
  12. exports.config = {
  13. ...base.config,
  14. logLevel: 'warn',
  15. capabilities: [
  16. { browserName: 'firefox', browserVersion: 'latest', platformName: 'Windows 10' },
  17. { browserName: 'firefox', browserVersion: 'latest-1', platformName: 'Windows 10' },
  18. { browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 10' },
  19. { browserName: 'chrome', browserVersion: 'latest-1', platformName: 'Windows 10' },
  20. { browserName: 'safari', browserVersion: 'latest', platformName: 'macOS 11' },
  21. { browserName: 'safari', browserVersion: '13.1', platformName: 'macOS 10.15' },
  22. { browserName: 'Safari', 'appium:deviceName': 'iPhone 12 Simulator', 'appium:deviceOrientation': 'portrait', 'appium:platformVersion': '14.3', platformName:'iOS' },
  23. // { browserName: 'Chrome', 'appium:deviceName': 'Android GoogleAPI Emulator', 'appium:deviceOrientation': 'portrait', 'a
  24. // ppium:platformVersion': '11.0', platformName: 'Android' },
  25. ].map(createCapability),
  26. // Patterns to exclude.
  27. exclude: [
  28. './chaos-monkey/*',
  29. './url-plugin/*',
  30. ],
  31. // If you only want to run your tests until a specific amount of tests have failed use
  32. // bail (default is 0 - don't bail, run all tests).
  33. bail: 3,
  34. // Set a base URL in order to shorten url command calls. If your url parameter starts
  35. // with "/", then the base url gets prepended.
  36. baseUrl: 'http://localhost',
  37. // Test runner services
  38. // Services take over a specific job you don't want to take care of. They enhance
  39. // your test setup with almost no effort. Unlike plugins, they don't add new
  40. // commands. Instead, they hook themselves up into the test process.
  41. services: [
  42. ...base.config.services,
  43. 'sauce',
  44. ],
  45. user: process.env.SAUCE_USERNAME,
  46. key: process.env.SAUCE_ACCESS_KEY,
  47. }