2018-06-13 18:34:10 +02:00
|
|
|
// Karma configuration file, see link for more information
|
|
|
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
|
|
|
2019-09-23 16:47:27 +02:00
|
|
|
module.exports = function (config) {
|
2018-06-19 16:55:50 +02:00
|
|
|
config.set({
|
|
|
|
basePath: '',
|
|
|
|
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
|
|
plugins: [
|
|
|
|
require('karma-jasmine'),
|
|
|
|
require('karma-chrome-launcher'),
|
|
|
|
require('karma-jasmine-html-reporter'),
|
2021-07-06 15:36:52 +02:00
|
|
|
require('karma-coverage'),
|
2018-06-19 16:55:50 +02:00
|
|
|
require('@angular-devkit/build-angular/plugins/karma')
|
|
|
|
],
|
|
|
|
client: {
|
2019-09-23 16:47:27 +02:00
|
|
|
clearContext: false, // leave Jasmine Spec Runner output visible in browser
|
|
|
|
jasmine: {
|
2021-07-06 15:36:52 +02:00
|
|
|
// you can add configuration options for Jasmine here
|
|
|
|
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
|
|
// for example, you can disable the random execution with `random: false`
|
|
|
|
// or set a specific seed with `seed: 4321`
|
|
|
|
},
|
|
|
|
},
|
|
|
|
jasmineHtmlReporter: {
|
|
|
|
suppressAll: true // removes the duplicated traces
|
2018-06-19 16:55:50 +02:00
|
|
|
},
|
2021-07-06 15:36:52 +02:00
|
|
|
coverageReporter: {
|
|
|
|
dir: require('path').join(__dirname, './coverage/Test'),
|
|
|
|
subdir: '.',
|
|
|
|
reporters: [{ type: 'html' }, { type: 'text-summary' }]
|
2018-06-19 16:55:50 +02:00
|
|
|
},
|
|
|
|
reporters: ['progress', 'kjhtml'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
autoWatch: true,
|
|
|
|
browsers: ['Chrome'],
|
2019-10-11 14:29:38 +02:00
|
|
|
customLaunchers: {
|
|
|
|
ChromeHeadlessNoSandbox: {
|
|
|
|
base: 'ChromeHeadless',
|
|
|
|
flags: ['--no-sandbox']
|
|
|
|
}
|
|
|
|
},
|
2018-10-15 10:12:47 +02:00
|
|
|
singleRun: false,
|
2021-07-06 15:36:52 +02:00
|
|
|
restartOnFileChange: true
|
2018-06-19 16:55:50 +02:00
|
|
|
});
|
|
|
|
};
|