karma.conf.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. './tests/modules/tests-karma.js',
  13. // load the latest build
  14. { pattern: './tests/modules/build/dependencies/**/*.js', watched: false, included: true, served: true },
  15. './tests/modules/build/tests-loader.js',
  16. { pattern: 'assets/**/*', 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. ],
  21. proxies: {
  22. '/': '/base/'
  23. },
  24. port: 3000,
  25. colors: true,
  26. autoWatch: false,
  27. singleRun: true,
  28. // level of logging
  29. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  30. logLevel: config.LOG_INFO,
  31. browsers: ['ChromeHeadless']
  32. })
  33. }