Fix logfile setting
[src/xds/xds-agent.git] / webapp / karma.conf.js
1 // Karma configuration file, see link for more information
2 // https://karma-runner.github.io/1.0/config/configuration-file.html
3
4 module.exports = function (config) {
5   const configuration = {
6     basePath: '',
7     frameworks: ['jasmine', '@angular/cli'],
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/cli/plugins/karma')
14     ],
15     client:{
16       clearContext: false // leave Jasmine Spec Runner output visible in browser
17     },
18     coverageIstanbulReporter: {
19       reports: [ 'html', 'lcovonly' ],
20       fixWebpackSourcePaths: true
21     },
22     angularCli: {
23       environment: 'dev'
24     },
25     reporters: ['progress', 'kjhtml'],
26     port: 9876,
27     colors: true,
28     logLevel: config.LOG_INFO,
29     autoWatch: true,
30     browsers: ['Chrome'],
31     customLaunchers: {
32       Chrome_travis_ci: {
33         base: 'Chrome',
34         flags: ['--no-sandbox']
35       }
36     },
37     singleRun: false
38   };
39
40   if (process.env.TRAVIS) {
41     configuration.browsers = ['Chrome_travis_ci'];
42   }
43
44   config.set(configuration);
45 };