karma.conf.js 1.6 KB

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