2 * Copyright (c) 2017 ZTE Corporation.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * and the Apache License 2.0 which both accompany this distribution,
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
7 * and http://www.apache.org/licenses/LICENSE-2.0
10 * ZTE - initial API and implementation and/or initial documentation
13 // Karma configuration file, see link for more information
14 // https://karma-runner.github.io/1.0/config/configuration-file.html
16 module.exports = function (config) {
19 frameworks: ['jasmine', '@angular/cli'],
21 require('karma-jasmine'),
22 require('karma-chrome-launcher'),
23 require('karma-jasmine-html-reporter'),
24 require('karma-coverage-istanbul-reporter'),
25 require('@angular/cli/plugins/karma')
28 clearContext: false // leave Jasmine Spec Runner output visible in browser
30 coverageIstanbulReporter: {
31 reports: [ 'html', 'lcovonly' ],
32 fixWebpackSourcePaths: true
37 reporters: ['progress', 'kjhtml'],
40 logLevel: config.LOG_INFO,