karma.conf.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // Karma configuration
  2. // Generated on Tue Oct 15 2013 15:27:53 GMT+0200 (CEST)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path, that will be used to resolve files and exclude
  6. basePath: '',
  7. // frameworks to use
  8. frameworks: ['mocha', 'chai'],
  9. // list of files / patterns to load in the browser
  10. files: [
  11. 'dist/SVGPathData.js',
  12. 'tests/**/*.mocha.js'
  13. ],
  14. // list of files to exclude
  15. exclude: [
  16. ],
  17. // test results reporter to use
  18. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  19. reporters: ['progress'],
  20. // web server port
  21. port: 9876,
  22. // enable / disable colors in the output (reporters and logs)
  23. colors: true,
  24. // level of logging
  25. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  26. logLevel: config.LOG_INFO,
  27. // enable / disable watching file and executing tests whenever any file changes
  28. autoWatch: true,
  29. // Start these browsers, currently available:
  30. // - Chrome
  31. // - ChromeCanary
  32. // - Firefox
  33. // - Opera
  34. // - Safari (only Mac)
  35. // - PhantomJS
  36. // - IE (only Windows)
  37. browsers: ['Chrome', 'Firefox', 'PhantomJS'],
  38. // If browser does not capture in given timeout [ms], kill it
  39. captureTimeout: 60000,
  40. // Continuous Integration mode
  41. // if true, it capture browsers, run tests and exit
  42. singleRun: false
  43. });
  44. };