karma.conf.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. module.exports = function(config) {
  2. 'use strict';
  3. config.set({
  4. // base path, that will be used to resolve files and exclude
  5. basePath: '',
  6. // list of files / patterns to load in the browser
  7. files: [
  8. 'bower_components/angular/angular.js',
  9. 'bower_components/angular-mocks/angular-mocks.js',
  10. 'src/**/*.js',
  11. 'test/**/*spec.js'
  12. ],
  13. frameworks: ['jasmine'],
  14. // list of files to exclude
  15. exclude: [
  16. ],
  17. // test results reporter to use
  18. // possible values: 'dots', 'progress', 'junit'
  19. reporters: ['progress'],
  20. // web server port
  21. port: 9876,
  22. // cli runner port
  23. runnerPort: 9100,
  24. // enable / disable colors in the output (reporters and logs)
  25. colors: true,
  26. // level of logging
  27. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  28. logLevel: config.LOG_INFO,
  29. // enable / disable watching file and executing tests whenever any file changes
  30. autoWatch: true,
  31. // Start these browsers, currently available:
  32. // - Chrome
  33. // - ChromeCanary
  34. // - Firefox
  35. // - Opera
  36. // - Safari (only Mac)
  37. // - PhantomJS
  38. // - IE (only Windows)
  39. browsers: ['Chrome'],
  40. // If browser does not capture in given timeout [ms], kill it
  41. captureTimeout: 60000,
  42. // Continuous Integration mode
  43. // if true, it capture browsers, run tests and exit
  44. singleRun: false
  45. });
  46. };