2017-06-10 22:32:56 +02:00
|
|
|
// Karma configuration file, see link for more information
|
2022-03-30 23:11:11 +02:00
|
|
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
2017-06-10 22:32:56 +02:00
|
|
|
|
|
|
|
module.exports = function (config) {
|
|
|
|
config.set({
|
|
|
|
basePath: '',
|
2018-05-23 02:27:07 +02:00
|
|
|
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
2017-06-10 22:32:56 +02:00
|
|
|
plugins: [
|
|
|
|
require('karma-jasmine'),
|
2018-03-30 21:30:30 +02:00
|
|
|
require('karma-chrome-launcher'),
|
2017-06-10 22:32:56 +02:00
|
|
|
require('karma-jasmine-html-reporter'),
|
2022-03-30 23:11:11 +02:00
|
|
|
require('karma-coverage'),
|
2018-05-23 02:27:07 +02:00
|
|
|
require('@angular-devkit/build-angular/plugins/karma')
|
2017-06-10 22:32:56 +02:00
|
|
|
],
|
2017-07-15 17:48:29 +02:00
|
|
|
client: {
|
2022-03-30 23:11:11 +02:00
|
|
|
jasmine: {
|
|
|
|
// 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`
|
|
|
|
},
|
2017-06-10 22:32:56 +02:00
|
|
|
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
|
|
},
|
2022-03-30 23:11:11 +02:00
|
|
|
jasmineHtmlReporter: {
|
|
|
|
suppressAll: true // removes the duplicated traces
|
2017-06-10 22:32:56 +02:00
|
|
|
},
|
2022-03-30 23:11:11 +02:00
|
|
|
coverageReporter: {
|
|
|
|
dir: require('path').join(__dirname, 'coverage'),
|
|
|
|
subdir: '.',
|
|
|
|
reporters: [
|
|
|
|
{ type: 'html' },
|
|
|
|
{ type: 'text-summary' }
|
|
|
|
]
|
2017-06-10 22:32:56 +02:00
|
|
|
},
|
|
|
|
reporters: ['progress', 'kjhtml'],
|
|
|
|
port: 9876,
|
|
|
|
colors: true,
|
|
|
|
logLevel: config.LOG_INFO,
|
2018-07-28 23:36:43 +02:00
|
|
|
autoWatch: false,
|
2018-03-30 21:30:30 +02:00
|
|
|
browsers: ["ChromeHeadless"],
|
2018-07-28 23:36:43 +02:00
|
|
|
singleRun: true
|
2017-06-10 22:32:56 +02:00
|
|
|
});
|
|
|
|
};
|