karma.conf.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Karma configuration
  2. // http://karma-runner.github.io/0.10/config/configuration-file.html
  3. module.exports = function(config) {
  4. config.set({
  5. // base path, that will be used to resolve files and exclude
  6. basePath: '',
  7. // testing framework to use (jasmine/mocha/qunit/...)
  8. frameworks: ['jasmine'],
  9. // list of files / patterns to load in the browser
  10. files: [
  11. 'app/bower_components/angular/angular.js',
  12. 'app/bower_components/angular-mocks/angular-mocks.js',
  13. 'app/scripts/*.js',
  14. 'app/scripts/**/*.js',
  15. 'test/mock/**/*.js',
  16. 'test/spec/**/*.js'
  17. ],
  18. // list of files / patterns to exclude
  19. exclude: [],
  20. // web server port
  21. port: 8080,
  22. // level of logging
  23. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  24. logLevel: config.LOG_INFO,
  25. // enable / disable watching file and executing tests whenever any file changes
  26. autoWatch: false,
  27. // Start these browsers, currently available:
  28. // - Chrome
  29. // - ChromeCanary
  30. // - Firefox
  31. // - Opera
  32. // - Safari (only Mac)
  33. // - PhantomJS
  34. // - IE (only Windows)
  35. browsers: ['Chrome'],
  36. // Continuous Integration mode
  37. // if true, it capture browsers, run tests and exit
  38. singleRun: false
  39. });
  40. };