karma.conf.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Karma configuration
  2. // Generated on Tue Mar 31 2015 23:46:42 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: ['qunit'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. 'qunit/qunit.js'
  13. ],
  14. // list of files to exclude
  15. exclude: [
  16. ],
  17. // preprocess matching files before serving them to the browser
  18. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  19. preprocessors: {},
  20. // test results reporter to use
  21. // possible values: 'dots', 'progress'
  22. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  23. reporters: ['progress'],
  24. // web server port
  25. port: 9876,
  26. // enable / disable colors in the output (reporters and logs)
  27. colors: true,
  28. // level of logging
  29. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  30. logLevel: config.LOG_INFO,
  31. // enable / disable watching file and executing tests whenever any file changes
  32. autoWatch: true,
  33. // start these browsers
  34. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  35. browsers: ["PhantomJS", "Chrome", "Firefox"],
  36. // Continuous Integration mode
  37. // if true, Karma captures browsers, runs the tests and exits
  38. singleRun: false
  39. })
  40. }