karma.conf.js 1.8 KB

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