karma.conf.js 1.8 KB

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