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.

36 lines
1.0 KiB

  1. // Karma configuration file, see link for more information
  2. // https://karma-runner.github.io/1.0/config/configuration-file.html
  3. module.exports = function (config) {
  4. config.set({
  5. basePath: '',
  6. frameworks: ['jasmine', '@angular-devkit/build-angular'],
  7. plugins: [
  8. require('karma-jasmine'),
  9. require('karma-chrome-launcher'),
  10. require('karma-jasmine-html-reporter'),
  11. require('karma-coverage'),
  12. require('@angular-devkit/build-angular/plugins/karma')
  13. ],
  14. client: {
  15. clearContext: false // leave Jasmine Spec Runner output visible in browser
  16. },
  17. coverageReporter: {
  18. dir: require('path').join(__dirname, './coverage/ng-webdpt'),
  19. subdir: '.',
  20. reporters: [
  21. { type: 'html' },
  22. { type: 'lcovonly' },
  23. { type: 'text-summary' }
  24. ]
  25. },
  26. reporters: ['progress', 'kjhtml'],
  27. port: 9876,
  28. colors: true,
  29. logLevel: config.LOG_INFO,
  30. autoWatch: true,
  31. browsers: ['ChromeHeadless'],
  32. singleRun: false,
  33. restartOnFileChange: true
  34. });
  35. };