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.

85 lines
2.0 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/definitions/**/*.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. 'src/definitions/**/*.js': 'coverage'
  39. },
  40. // test results reporter to use
  41. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  42. reporters: ['spec', 'coverage'],
  43. coverageReporter: {
  44. type: 'lcov'
  45. },
  46. // web server port
  47. port: 9999,
  48. // enable / disable colors in the output (reporters and logs)
  49. colors: true,
  50. // level of logging
  51. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  52. logLevel: config.LOG_INFO,
  53. // enable / disable watching file and executing tests whenever any file changes
  54. autoWatch: true,
  55. // Start these browsers, currently available:
  56. // - Chrome
  57. // - ChromeCanary
  58. // - Firefox
  59. // - Opera
  60. // - Safari (only Mac)
  61. // - PhantomJS
  62. // - IE (only Windows)
  63. browsers: ['PhantomJS'],
  64. // If browser does not capture in given timeout [ms], kill it
  65. captureTimeout: 60000,
  66. // Continuous Integration mode
  67. // if true, it capture browsers, run tests and exit
  68. singleRun: false
  69. });
  70. };