karma.conf.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // Karma configuration
  2. // base path, that will be used to resolve files and exclude
  3. basePath = '';
  4. // list of files / patterns to load in the browser
  5. files = [
  6. JASMINE,
  7. JASMINE_ADAPTER,
  8. 'app/bower_components/angular/angular.js',
  9. 'app/bower_components/angular-mocks/angular-mocks.js',
  10. 'app/scripts/*.js',
  11. 'app/scripts/**/*.js',
  12. 'test/mock/**/*.js',
  13. 'test/spec/**/*.js'
  14. ];
  15. // list of files to exclude
  16. exclude = [];
  17. // test results reporter to use
  18. // possible values: dots || progress || growl
  19. reporters = ['progress'];
  20. // web server port
  21. port = 8080;
  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 = LOG_INFO;
  29. // enable / disable watching file and executing tests whenever any file changes
  30. autoWatch = false;
  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 = 5000;
  42. // Continuous Integration mode
  43. // if true, it capture browsers, run tests and exit
  44. singleRun = false;