blob: 5296054a7034f9decd9fd995a39b75fe4be0df45 [file] [log] [blame]
Lvbo163f721b1a2017-08-23 17:27:33 +08001/**
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
8 *
9 * Contributors:
10 * ZTE - initial API and implementation and/or initial documentation
11 */
12
13// Karma configuration file, see link for more information
14// https://karma-runner.github.io/1.0/config/configuration-file.html
15
16module.exports = function (config) {
17 config.set({
18 basePath: '',
19 frameworks: ['jasmine', '@angular/cli'],
20 plugins: [
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')
26 ],
27 client:{
28 clearContext: false // leave Jasmine Spec Runner output visible in browser
29 },
30 coverageIstanbulReporter: {
31 reports: [ 'html', 'lcovonly' ],
32 fixWebpackSourcePaths: true
33 },
34 angularCli: {
35 environment: 'dev'
36 },
37 reporters: ['progress', 'kjhtml'],
38 port: 9876,
39 colors: true,
40 logLevel: config.LOG_INFO,
41 autoWatch: true,
42 browsers: ['Chrome'],
43 singleRun: false
44 });
45};