Aucune description

karma.conf.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Karma configuration
  2. // Generated on Wed Sep 14 2016 10:43:16 GMT-0500 (CDT)
  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. 'dist/granim.js',
  13. 'test/testUtils.js',
  14. 'test/**/*Spec.js',
  15. { pattern: 'test/img/*.jpg', watched: false, included: false, served: true },
  16. './node_modules/phantomjs-polyfill-object-assign/object-assign-polyfill.js',
  17. ],
  18. proxies: {
  19. '/img/': 'http://localhost:9876/base/test/img'
  20. },
  21. // list of files to exclude
  22. exclude: [],
  23. // preprocess matching files before serving them to the browser
  24. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  25. preprocessors: { 'dist/**/*.js': ['coverage'] },
  26. // test results reporter to use
  27. // possible values: 'dots', 'progress'
  28. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  29. reporters: ['spec', 'coverage'],
  30. coverageReporter: {
  31. reporters: [
  32. { type: 'lcov', subdir: '.' },
  33. { type: 'text-summary' }
  34. ]
  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 simultaneous
  53. concurrency: Infinity
  54. })
  55. };