karma.conf.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Karma configuration
  2. // Generated on Sun May 01 2016 16:50:20 GMT+0200 (CEST)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path that will be used to resolve all patterns (eg. files, exclude)
  6. basePath: '',
  7. // frameworks to use
  8. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  9. frameworks: ['browserify', 'qunit'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'test/**/*.js'
  13. ],
  14. // list of files to exclude
  15. exclude: [
  16. ],
  17. // preprocess matching files before serving them to the browser
  18. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  19. preprocessors: {
  20. 'test/**/*.js': 'browserify'
  21. },
  22. // test results reporter to use
  23. // possible values: 'dots', 'progress'
  24. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  25. reporters: ['mocha'],
  26. // web server port
  27. port: 9876,
  28. // enable / disable colors in the output (reporters and logs)
  29. colors: true,
  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. // enable / disable watching file and executing tests whenever any file changes
  34. autoWatch: false,
  35. // start these browsers
  36. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  37. browsers: ['Chrome', 'Firefox'],
  38. // Continuous Integration mode
  39. // if true, Karma captures browsers, runs the tests and exits
  40. singleRun: false,
  41. // Concurrency level
  42. // how many browser should be started simultaneous
  43. concurrency: Infinity
  44. })
  45. }