Sudarshan Kumar | 1515595 | 2019-12-18 22:32:06 +0530 | [diff] [blame] | 1 | // Karma configuration file, see link for more information |
| 2 | // https://karma-runner.github.io/1.0/config/configuration-file.html |
| 3 | |
jegadeeshbabu3 | 4d894a7 | 2020-03-05 20:16:36 +0530 | [diff] [blame] | 4 | process.env.CHROME_BIN = require('puppeteer').executablePath() |
Sudarshan Kumar | 1515595 | 2019-12-18 22:32:06 +0530 | [diff] [blame] | 5 | module.exports = function (config) { |
| 6 | config.set({ |
| 7 | basePath: '', |
| 8 | frameworks: ['jasmine', '@angular-devkit/build-angular'], |
| 9 | plugins: [ |
| 10 | require('karma-jasmine'), |
| 11 | require('karma-chrome-launcher'), |
| 12 | require('karma-jasmine-html-reporter'), |
| 13 | require('karma-coverage-istanbul-reporter'), |
jegadeeshbabu3 | 4d894a7 | 2020-03-05 20:16:36 +0530 | [diff] [blame] | 14 | require('karma-phantomjs-launcher'), |
Sudarshan Kumar | 1515595 | 2019-12-18 22:32:06 +0530 | [diff] [blame] | 15 | require('@angular-devkit/build-angular/plugins/karma') |
| 16 | ], |
| 17 | client: { |
| 18 | clearContext: false // leave Jasmine Spec Runner output visible in browser |
| 19 | }, |
| 20 | coverageIstanbulReporter: { |
| 21 | dir: require('path').join(__dirname, '../coverage'), |
| 22 | reports: ['html', 'lcovonly'], |
| 23 | fixWebpackSourcePaths: true |
| 24 | }, |
| 25 | reporters: ['progress', 'kjhtml'], |
| 26 | port: 9876, |
| 27 | colors: true, |
| 28 | logLevel: config.LOG_INFO, |
| 29 | autoWatch: true, |
jegadeeshbabu3 | 4d894a7 | 2020-03-05 20:16:36 +0530 | [diff] [blame] | 30 | browsers: ['ChromeHeadless'], |
Sudarshan Kumar | 1515595 | 2019-12-18 22:32:06 +0530 | [diff] [blame] | 31 | singleRun: false |
| 32 | }); |
| 33 | }; |