karma.conf.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Karma configuration
  2. // Generated on Sat Mar 28 2015 11:17:34 GMT-0700 (PDT)
  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: ['jasmine'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'misc/test-lib/jquery-1.8.2.min.js',
  13. 'node_modules/angular/angular.js',
  14. 'node_modules/angular-mocks/angular-mocks.js',
  15. 'node_modules/angular-sanitize/angular-sanitize.js',
  16. 'misc/test-lib/helpers.js',
  17. 'src/**/*.js',
  18. 'template/**/*.js'
  19. ],
  20. // list of files to exclude
  21. exclude: [
  22. 'src/**/docs/*'
  23. ],
  24. // preprocess matching files before serving them to the browser
  25. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  26. preprocessors: {
  27. },
  28. // test results reporter to use
  29. // possible values: 'dots', 'progress'
  30. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  31. reporters: ['progress'],
  32. reportSlowerThan: 100,
  33. // web server port
  34. port: 9876,
  35. // enable / disable colors in the output (reporters and logs)
  36. colors: true,
  37. // level of logging
  38. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  39. logLevel: config.LOG_INFO,
  40. // enable / disable watching file and executing tests whenever any file changes
  41. autoWatch: true,
  42. // start these browsers
  43. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  44. browsers: ['Chrome'],
  45. // Continuous Integration mode
  46. // if true, Karma captures browsers, runs the tests and exits
  47. singleRun: false
  48. });
  49. };