karma.conf.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Karma configuration
  2. // Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST)
  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', 'jquery-1.8.3'],
  10. plugins: [
  11. 'karma-jasmine',
  12. 'karma-chrome-launcher',
  13. 'karma-phantomjs-launcher',
  14. 'karma-jquery'
  15. ],
  16. // list of files / patterns to load in the browser
  17. files: [
  18. 'bower/angular/angular.js',
  19. 'bower/angular-mocks/angular-mocks.js',
  20. 'bower/angular-animate/angular-animate.js',
  21. 'src/vAccordion/*.js',
  22. 'src/vAccordion/directives/*.js',
  23. 'test/unit/**/*.js'
  24. ],
  25. // list of files to exclude
  26. exclude: [
  27. ],
  28. // preprocess matching files before serving them to the browser
  29. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  30. preprocessors: {
  31. },
  32. // test results reporter to use
  33. // possible values: 'dots', 'progress'
  34. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  35. reporters: ['progress'],
  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. });
  52. };