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.

80 lines
1.9 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/uncompressed/**/*.css',
  16. // read js from src js
  17. 'src/**/*.js',
  18. // require helpers
  19. 'test/helpers/*.js',
  20. // require fixtures
  21. {
  22. pattern : 'test/fixtures/*.html',
  23. included : false,
  24. served : true
  25. },
  26. // require spec
  27. 'test/modules/module.spec.js',
  28. // require tests
  29. 'test/modules/*.js'
  30. ],
  31. // list of files to exclude
  32. exclude: [
  33. '**/*.swp',
  34. 'karma.conf.js'
  35. ],
  36. preprocessors: {
  37. '**/*.html': []
  38. },
  39. // test results reporter to use
  40. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  41. reporters: ['spec'],
  42. // web server port
  43. port: 9999,
  44. // enable / disable colors in the output (reporters and logs)
  45. colors: true,
  46. // level of logging
  47. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  48. logLevel: config.LOG_INFO,
  49. // enable / disable watching file and executing tests whenever any file changes
  50. autoWatch: true,
  51. // Start these browsers, currently available:
  52. // - Chrome
  53. // - ChromeCanary
  54. // - Firefox
  55. // - Opera
  56. // - Safari (only Mac)
  57. // - PhantomJS
  58. // - IE (only Windows)
  59. browsers: ['PhantomJS'],
  60. // If browser does not capture in given timeout [ms], kill it
  61. captureTimeout: 60000,
  62. // Continuous Integration mode
  63. // if true, it capture browsers, run tests and exit
  64. singleRun: false
  65. });
  66. };