25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

102 satır
2.5 KiB

  1. // Karma configuration
  2. // Generated on Tue Oct 04 2016 13:53:46 GMT+0200 (CEST)
  3. module.exports = function(config) {
  4. config.set({
  5. // base path that will be used to resolve all patterns (eg. files, exclude)
  6. basePath: '../',
  7. // frameworks to use
  8. // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  9. frameworks: ['jasmine'],
  10. // list of files / patterns to load in the browser
  11. files: [
  12. '.config/pretest.js',
  13. {
  14. pattern: 'spec/fixtures/fixture.css',
  15. included: false,
  16. served: true
  17. },
  18. {
  19. pattern: 'spec/fixtures/fixture.svg',
  20. included: false,
  21. served: true
  22. },
  23. {
  24. pattern: 'spec/fixtures/pixel.png',
  25. included: false,
  26. served: true
  27. },
  28. 'dist/svg.js',
  29. 'spec/spec/**/*.js'
  30. ],
  31. proxies: {
  32. '/fixtures/': '/base/spec/fixtures/'
  33. },
  34. // list of files to exclude
  35. exclude: [],
  36. // preprocess matching files before serving them to the browser
  37. // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  38. preprocessors: {
  39. 'dist/svg.js': ['coverage']
  40. },
  41. // test results reporter to use
  42. // possible values: 'dots', 'progress'
  43. // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  44. reporters: ['progress', 'coverage'],
  45. // configure the coverage reporter
  46. coverageReporter: {
  47. // Specify a reporter type.
  48. type: 'lcov',
  49. dir: 'coverage/',
  50. subdir: function(browser) {
  51. // normalization process to keep a consistent browser name accross different OS
  52. return browser.toLowerCase().split(/[ /-]/)[0]; // output the results into: './coverage/firefox/'
  53. }
  54. },
  55. // web server port
  56. port: 9876,
  57. // enable / disable colors in the output (reporters and logs)
  58. colors: true,
  59. // level of logging
  60. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  61. logLevel: config.LOG_INFO,
  62. // enable / disable watching file and executing tests whenever any file changes
  63. autoWatch: false,
  64. // start these browsers
  65. // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  66. browsers: ['Firefox'],
  67. // Continuous Integration mode
  68. // if true, Karma captures browsers, runs the tests and exits
  69. singleRun: false,
  70. // Concurrency level
  71. // how many browser should be started simultaneous
  72. concurrency: Infinity
  73. })
  74. }