blob: ccf9dd3895a716e71093711c5f1edf2c5038000c [file] [log] [blame]
Sean Condona36f65c2019-05-20 08:21:41 +01001// Karma configuration file, see link for more information
2// https://karma-runner.github.io/1.0/config/configuration-file.html
3
4module.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: {
Sean Condon6a6f9a02020-01-09 14:09:36 +000019 dir: require('path').join(__dirname, './coverage/${artifactId}-gui'),
20 reports: ['html', 'lcovonly', 'text-summary'],
Sean Condona36f65c2019-05-20 08:21:41 +010021 fixWebpackSourcePaths: true
22 },
23 reporters: ['progress', 'kjhtml'],
24 port: 9876,
25 colors: true,
26 logLevel: config.LOG_INFO,
27 autoWatch: true,
28 browsers: ['Chrome'],
Sean Condon6a6f9a02020-01-09 14:09:36 +000029 singleRun: false,
30 restartOnFileChange: true
Sean Condona36f65c2019-05-20 08:21:41 +010031 });
32};