karma.conf.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. module.exports = function(config) {
  2. config.set({
  3. // base path that will be used to resolve all patterns (eg. files, exclude)
  4. basePath: '',
  5. // frameworks to use
  6. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  7. frameworks: ['jasmine'],
  8. // list of files / patterns to load in the browser
  9. files: [
  10. 'node_modules/timeshift-js/timeshift.js',
  11. 'hijrah-date.js',
  12. 'test/HijrahDate.spec.js',
  13. 'test/HijrahDateFormatter.spec.js'
  14. ],
  15. // list of files to exclude
  16. exclude: [
  17. ],
  18. // preprocess matching files before serving them to the browser
  19. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  20. preprocessors: {
  21. },
  22. // test results reporter to use
  23. // possible values: 'dots', 'progress'
  24. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  25. reporters: ['progress'],
  26. // web server port
  27. port: 9876,
  28. // enable / disable colors in the output (reporters and logs)
  29. colors: true,
  30. // level of logging
  31. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  32. logLevel: config.LOG_INFO,
  33. // enable / disable watching file and executing tests whenever any file changes
  34. autoWatch: true,
  35. // start these browsers
  36. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  37. browsers: ['PhantomJS'],
  38. // Continuous Integration mode
  39. // if true, Karma captures browsers, runs the tests and exits
  40. singleRun: false,
  41. // Concurrency level
  42. // how many browser should be started simultaneous
  43. concurrency: Infinity
  44. })
  45. }