karma.conf.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Karma configuration
  2. // Generated on Mon Jun 23 2014 15:46:44 GMT-0400 (EDT)
  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. // libraries
  13. __dirname + '/../spec/lib/angular.js',
  14. __dirname + '/../spec/lib/angular-mocks.js',
  15. 'https://maps.google.com/maps/api/js',
  16. __dirname + '/../spec/lib/markerclusterer.js',
  17. // our app
  18. __dirname + '/../app/scripts/app.js',
  19. __dirname + '/../app/scripts/directives/*.js',
  20. __dirname + '/../app/scripts/services/*.js',
  21. // tests
  22. __dirname + '/../spec/directives/*_spec.js',
  23. __dirname + '/../spec/services/*_spec.js'
  24. ],
  25. // list of files to exclude
  26. exclude: [ ],
  27. // preprocess matching files before serving them to the browser
  28. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  29. preprocessors: { },
  30. // test results reporter to use
  31. // possible values: 'dots', 'progress'
  32. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  33. reporters: ['progress'],
  34. // web server port
  35. port: 9876,
  36. // enable / disable colors in the output (reporters and logs)
  37. colors: true,
  38. // level of logging
  39. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  40. logLevel: config.LOG_INFO,
  41. // enable / disable watching file and executing tests whenever any file changes
  42. autoWatch: false,
  43. // start these browsers
  44. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  45. browsers: ['PhantomJS'],
  46. // Continuous Integration mode
  47. // if true, Karma captures browsers, runs the tests and exits
  48. singleRun: true
  49. });
  50. };