Keine Beschreibung

karma.conf.js 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Karma configuration
  2. // Generated on Thu Nov 05 2015 21:52:19 GMT-0300 (BRT)
  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. 'node_modules/angular/angular.js',
  13. 'node_modules/angular-mocks/angular-mocks.js',
  14. 'node_modules/jssha/src/sha.js',
  15. 'src/*.js',
  16. 'tests/mocks/*.mock.js',
  17. 'tests/*.test.js'
  18. ],
  19. // list of files to exclude
  20. exclude: [
  21. ],
  22. // preprocess matching files before serving them to the browser
  23. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  24. preprocessors: {
  25. 'src/*.js': 'coverage'
  26. },
  27. // test results reporter to use
  28. // possible values: 'dots', 'progress'
  29. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  30. reporters: ['progress', 'coverage'],
  31. coverageReporter: {
  32. type : 'html',
  33. // output coverage reports
  34. dir : 'coverage/'
  35. },
  36. // web server port
  37. port: 9876,
  38. // enable / disable colors in the output (reporters and logs)
  39. colors: true,
  40. // level of logging
  41. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  42. logLevel: config.LOG_INFO,
  43. // enable / disable watching file and executing tests whenever any file changes
  44. autoWatch: true,
  45. // start these browsers
  46. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  47. browsers: ['PhantomJS'],
  48. // Continuous Integration mode
  49. // if true, Karma captures browsers, runs the tests and exits
  50. singleRun: false,
  51. // Concurrency level
  52. // how many browser should be started simultanous
  53. concurrency: Infinity
  54. })
  55. }