You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

  1. // Karma configuration
  2. module.exports = function(config) {
  3. config.set({
  4. // base path, that will be used to resolve files and exclude
  5. basePath: '',
  6. // frameworks to use
  7. frameworks: [
  8. 'jasmine'
  9. ],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. // require jquery
  13. '../server/files/javascript/library/jquery.js',
  14. // read css from compiled css
  15. '../docs/build/**/*.css',
  16. // read js from src js
  17. '../src/**/*.js',
  18. // require helpers
  19. 'helpers/*.js',
  20. // require tests
  21. 'modules/*.js'
  22. ],
  23. // list of files to exclude
  24. exclude: [
  25. '**/*.swp',
  26. 'karma.conf.js'
  27. ],
  28. // test results reporter to use
  29. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  30. reporters: ['spec'],
  31. // web server port
  32. port: 9999,
  33. // enable / disable colors in the output (reporters and logs)
  34. colors: true,
  35. // level of logging
  36. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  37. logLevel: config.LOG_INFO,
  38. // enable / disable watching file and executing tests whenever any file changes
  39. autoWatch: true,
  40. // Start these browsers, currently available:
  41. // - Chrome
  42. // - ChromeCanary
  43. // - Firefox
  44. // - Opera
  45. // - Safari (only Mac)
  46. // - PhantomJS
  47. // - IE (only Windows)
  48. browsers: ['PhantomJS'],
  49. // If browser does not capture in given timeout [ms], kill it
  50. captureTimeout: 60000,
  51. // Continuous Integration mode
  52. // if true, it capture browsers, run tests and exit
  53. singleRun: false
  54. });
  55. };