wdio.remote.conf.js 1.9 KB

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