Shaaban Ebrahim | 6cc77cb | 2019-11-11 10:51:21 +0200 | [diff] [blame] | 1 | // Karma configuration file, see link for more information |
| 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html |
| 3 | |
| 4 | module.exports = function (config) { |
| 5 | config.set({ |
| 6 | basePath: '', |
| 7 | frameworks: ['jasmine', '@angular-devkit/build-angular'], |
| 8 | plugins: [ |
| 9 | require('karma-jasmine'), |
| 10 | require('karma-chrome-launcher'), |
| 11 | require('karma-jasmine-html-reporter'), |
| 12 | require('karma-coverage-istanbul-reporter'), |
| 13 | require('@angular-devkit/build-angular/plugins/karma') |
| 14 | ], |
| 15 | client: { |
| 16 | clearContext: false // leave Jasmine Spec Runner output visible in browser |
| 17 | }, |
| 18 | coverageIstanbulReporter: { |
Ahmed Abbas | 1b8623b | 2019-12-05 15:50:20 +0200 | [diff] [blame] | 19 | dir: require('path').join(__dirname, './coverage/designer-client'), |
Shaaban Ebrahim | 6cc77cb | 2019-11-11 10:51:21 +0200 | [diff] [blame] | 20 | reports: ['html', 'lcovonly', 'text-summary'], |
| 21 | fixWebpackSourcePaths: true |
| 22 | }, |
| 23 | reporters: ['progress', 'kjhtml'], |
| 24 | port: 9876, |
| 25 | colors: true, |
| 26 | logLevel: config.LOG_INFO, |
| 27 | autoWatch: true, |
| 28 | browsers: ['Chrome'], |
| 29 | singleRun: false, |
| 30 | restartOnFileChange: true |
| 31 | }); |
| 32 | }; |