karma.conf.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Testacular configuration file
  2. //
  3. // For all available config options and default values, see:
  4. // https://github.com/vojtajina/testacular/blob/stable/lib/config.js#L54
  5. // base path, that will be used to resolve files and exclude
  6. basePath = './..';
  7. // frameworks to use
  8. // frameworks = ['jasmine'];
  9. // list of files / patterns to load in the browser
  10. files = [
  11. JASMINE,
  12. JASMINE_ADAPTER,
  13. 'test/lib/angular/angular.min.js',
  14. 'test/lib/angular/angular-mocks.js',
  15. 'src/*.js',
  16. 'test/unit/*.js'
  17. ];
  18. // list of files to exclude
  19. exclude = [];
  20. // use dots reporter, as travis terminal does not support escaping sequences
  21. // possible values: 'dots', 'progress', 'junit'
  22. // CLI --reporters progress
  23. // 'coverage',
  24. reporters = ['progress'];
  25. // web server port
  26. // CLI --port 9876
  27. port = 9876;
  28. // cli runner port
  29. // CLI --runner-port 9100
  30. runnerPort = 9100;
  31. // enable / disable colors in the output (reporters and logs)
  32. // CLI --colors --no-colors
  33. colors = true;
  34. // level of logging
  35. // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
  36. // CLI --log-level debug
  37. logLevel = LOG_INFO;
  38. // enable / disable watching file and executing tests whenever any file changes
  39. // CLI --auto-watch --no-auto-watch
  40. autoWatch = true;
  41. // Start these browsers, currently available:
  42. // - Chrome
  43. // - ChromeCanary
  44. // - Firefox
  45. // - Opera
  46. // - Safari (only Mac)
  47. // - PhantomJS
  48. // - IE (only Windows)
  49. // CLI --browsers Chrome,Firefox,Safari
  50. browsers = ['Chrome'];
  51. // If browser does not capture in given timeout [ms], kill it
  52. // CLI --capture-timeout 5000
  53. captureTimeout = 5000;
  54. // Auto run tests on start (when browsers are captured) and exit
  55. // CLI --single-run --no-single-run
  56. singleRun = false;
  57. // report which specs are slower than 500ms
  58. // CLI --report-slower-than 500
  59. reportSlowerThan = 500;