karma.conf.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Karma configuration
  2. // Generated on Thu Dec 10 2015 03:01:27 GMT+0100 (CET)
  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: ['mocha'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'dist/*.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. },
  21. // test results reporter to use
  22. // possible values: 'dots', 'progress'
  23. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  24. reporters: ['progress'],
  25. // web server port
  26. port: 9876,
  27. // enable / disable colors in the output (reporters and logs)
  28. colors: true,
  29. // level of logging
  30. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  31. logLevel: config.LOG_INFO,
  32. // enable / disable watching file and executing tests whenever any file changes
  33. autoWatch: true,
  34. // start these browsers
  35. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  36. browsers: ['PhantomJS', 'Firefox'],
  37. // Continuous Integration mode
  38. // if true, Karma captures browsers, runs the tests and exits
  39. singleRun: false,
  40. // Concurrency level
  41. // how many browser should be started simultanous
  42. concurrency: Infinity
  43. })
  44. }