karma.conf.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. module.exports = function (config) {
  2. 'use strict';
  3. config.set({
  4. basePath: '../../',
  5. captureTimeout: 3e5,
  6. browserNoActivityTimeout: 3e5,
  7. browserDisconnectTimeout: 3e5,
  8. browserDisconnectTolerance: 3,
  9. concurrency: 1,
  10. urlRoot: '/karma',
  11. frameworks: ['mocha', 'chai', 'sinon'],
  12. files: [
  13. './Tools/DevLoader/BabylonLoader.js',
  14. './tests/validation/index.css',
  15. './tests/validation/integration.js',
  16. './favicon.ico',
  17. { pattern: 'dist/**/*', watched: false, included: false, served: true },
  18. { pattern: 'assets/**/*', watched: false, included: false, served: true },
  19. { pattern: 'tests/**/*', watched: false, included: false, served: true },
  20. { pattern: 'Playground/scenes/**/*', watched: false, included: false, served: true },
  21. { pattern: 'Playground/textures/**/*', watched: false, included: false, served: true },
  22. { pattern: 'Playground/sounds/**/*', watched: false, included: false, served: true },
  23. { pattern: 'Tools/DevLoader/**/*', watched: false, included: false, served: true },
  24. { pattern: 'Tools/Gulp/config.json', watched: false, included: false, served: true },
  25. ],
  26. proxies: {
  27. '/': '/base/'
  28. },
  29. port: 3000,
  30. colors: true,
  31. autoWatch: false,
  32. singleRun: false,
  33. // level of logging
  34. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  35. logLevel: config.LOG_INFO,
  36. browsers: ['Chrome']
  37. });
  38. };