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.

44 lines
1.3 KiB

  1. module.exports = function (config) {
  2. config.set({
  3. basePath: '',
  4. frameworks: ['jasmine', '@angular-devkit/build-angular'],
  5. plugins: [
  6. require('karma-jasmine'),
  7. require('karma-chrome-launcher'),
  8. require('karma-jasmine-html-reporter'),
  9. require('karma-coverage'),
  10. require('@angular-devkit/build-angular/plugins/karma')
  11. ],
  12. client: {
  13. jasmine: {
  14. // you can add configuration options for Jasmine here
  15. // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
  16. // for example, you can disable the random execution with `random: false`
  17. // or set a specific seed with `seed: 4321`
  18. },
  19. clearContext: false // leave Jasmine Spec Runner output visible in browser
  20. },
  21. jasmineHtmlReporter: {
  22. suppressAll: true // removes the duplicated traces
  23. },
  24. coverageReporter: {
  25. dir: require('path').join(__dirname, './coverage/'),
  26. subdir: '.',
  27. reporters: [
  28. { type: 'html' },
  29. { type: 'text-summary' }
  30. ]
  31. },
  32. reporters: ['progress', 'kjhtml'],
  33. port: 9876,
  34. colors: true,
  35. logLevel: config.LOG_INFO,
  36. autoWatch: true,
  37. browsers: ['Chrome'],
  38. singleRun: false,
  39. restartOnFileChange: true,
  40. listenAddress: 'localhost',
  41. hostname: 'localhost'
  42. });
  43. };