Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | module.exports = function (config) { |
| 2 | config.set({ |
| 3 | basePath: '', |
| 4 | frameworks: ['jasmine', '@angular/cli'], |
| 5 | plugins: [ |
| 6 | require('karma-jasmine'), |
| 7 | require('karma-chrome-launcher'), |
| 8 | require('karma-jasmine-html-reporter'), |
| 9 | require('karma-coverage-istanbul-reporter'), |
| 10 | require('karma-junit-reporter'), |
| 11 | require('karma-phantomjs-launcher'), |
| 12 | require('@angular/cli/plugins/karma') |
| 13 | ], |
| 14 | client:{ |
| 15 | clearContext: false // leave Jasmine Spec Runner output visible in browser |
| 16 | }, |
| 17 | coverageIstanbulReporter: { |
| 18 | reports: [ 'html','json', 'lcovonly' ], |
| 19 | fixWebpackSourcePaths: true |
| 20 | }, |
| 21 | angularCli: { |
| 22 | environment: 'dev' |
| 23 | }, |
| 24 | reporters: ['progress', 'junit'], |
| 25 | port: 9876, |
| 26 | colors: true, |
| 27 | logLevel: config.LOG_ERROR, |
| 28 | autoWatch: false, |
| 29 | browsers: ['PhantomJS'], |
| 30 | junitReporter: { |
| 31 | outputFile: '../test-resultskarma.xml', |
| 32 | outputDir : 'coverage', |
| 33 | suite : '' |
| 34 | }, |
| 35 | singleRun: true |
| 36 | }); |
| 37 | } |