karma.conf.saucelabs.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // sl_ie_11: {
  2. // base: 'SauceLabs',
  3. // browserName: 'internet explorer',
  4. // platform: 'Windows 10',
  5. // version: '11'
  6. // },
  7. // sl_android: {
  8. // base: 'SauceLabs',
  9. // browserName: 'Browser',
  10. // platform: 'Android',
  11. // version: '4.4',
  12. // deviceName: 'Samsung Galaxy S3 Emulator',
  13. // deviceOrientation: 'portrait'
  14. // }
  15. var launchers = {
  16. sl_firefox: {
  17. base: 'SauceLabs',
  18. browserName: 'firefox',
  19. platform: 'Windows 10',
  20. version: '57',
  21. tunnelIdentifier: ENV.TRAVIS_JOB_NUMBER
  22. }
  23. };
  24. module.exports = function (config) {
  25. 'use strict';
  26. config.set({
  27. basePath: '../../',
  28. browserNoActivityTimeout: 1800000,
  29. urlRoot: '/karma',
  30. frameworks: ['mocha', 'chai', 'sinon'],
  31. files: [
  32. './Tools/DevLoader/BabylonLoader.js',
  33. './tests/validation/index.css',
  34. './tests/validation/integration.js',
  35. { pattern: 'dist/**/*', watched: false, included: false, served: true },
  36. { pattern: 'assets/**/*', watched: false, included: false, served: true },
  37. { pattern: 'tests/**/*', watched: false, included: false, served: true },
  38. { pattern: 'Playground/scenes/**/*', watched: false, included: false, served: true },
  39. { pattern: 'Playground/textures/**/*', watched: false, included: false, served: true },
  40. { pattern: 'Playground/sounds/**/*', watched: false, included: false, served: true },
  41. { pattern: 'Tools/DevLoader/**/*', watched: false, included: false, served: true },
  42. { pattern: 'Tools/Gulp/config.json', watched: false, included: false, served: true },
  43. ],
  44. proxies: {
  45. '/': '/base/'
  46. },
  47. port: 1338,
  48. colors: true,
  49. autoWatch: false,
  50. singleRun: false,
  51. // level of logging
  52. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  53. logLevel: config.LOG_ERROR,
  54. sauceLabs: {
  55. testName: 'Babylon JS Validation Tests'
  56. },
  57. customLaunchers: launchers,
  58. browsers: ['sl_firefox'],
  59. reporters: ['dots', 'saucelabs'],
  60. singleRun: true
  61. });
  62. };