wdio.remote.conf.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. './transloadit/*',
  31. ],
  32. // If you only want to run your tests until a specific amount of tests have failed use
  33. // bail (default is 0 - don't bail, run all tests).
  34. bail: 3,
  35. // Set a base URL in order to shorten url command calls. If your url parameter starts
  36. // with "/", then the base url gets prepended.
  37. baseUrl: 'http://localhost',
  38. // Test runner services
  39. // Services take over a specific job you don't want to take care of. They enhance
  40. // your test setup with almost no effort. Unlike plugins, they don't add new
  41. // commands. Instead, they hook themselves up into the test process.
  42. services: [
  43. ...base.config.services,
  44. 'sauce',
  45. ],
  46. user: process.env.SAUCE_USERNAME,
  47. key: process.env.SAUCE_ACCESS_KEY,
  48. }