karma.conf.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // Karma configuration
  2. // Generated on Wed Sep 03 2014 14:40:18 GMT-0700 (PDT)
  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. 'bower_components/angular/angular.js',
  13. 'bower_components/angular-mocks/angular-mocks.js',
  14. 'node_modules/expect.js/index.js',
  15. 'specs/jasmine.conf.js',
  16. 'src/transitions/transitions.js',
  17. 'src/transitions/modal.js',
  18. 'src/transitions/expand.js',
  19. 'src/transitions/overlay.js',
  20. 'src/directives/directives.js',
  21. 'src/directives/modal.js',
  22. 'src/directives/overlay.js',
  23. 'src/morphAssist.js',
  24. 'src/morph.js',
  25. 'src/app.js',
  26. 'spec/**/*Spec.js'
  27. ],
  28. // list of files to exclude
  29. exclude: [
  30. 'karma.conf.js'
  31. ],
  32. // preprocess matching files before serving them to the browser
  33. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  34. preprocessors: {
  35. 'src/*.js': ['coverage']
  36. },
  37. // test results reporter to use
  38. // possible values: 'dots', 'progress'
  39. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  40. reporters: ['progress', 'coverage'],
  41. coverageReporter: {
  42. type : 'html',
  43. // where to store the report
  44. dir : 'spec/coverage/'
  45. },
  46. // web server port
  47. port: 9876,
  48. // enable / disable colors in the output (reporters and logs)
  49. colors: true,
  50. // level of logging
  51. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  52. logLevel: config.LOG_INFO,
  53. // enable / disable watching file and executing tests whenever any file changes
  54. autoWatch: true,
  55. // start these browsers
  56. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  57. browsers: ['Chrome'],
  58. // Continuous Integration mode
  59. // if true, Karma captures browsers, runs the tests and exits
  60. singleRun: false
  61. });
  62. };