Migrate "ms/controllerblueprints" from ccsdk/apps
[ccsdk/cds.git] / cds-ui / client / src / karma.conf.js
1 /*
2 ============LICENSE_START==========================================
3 ===================================================================
4 Copyright (C) 2018 IBM Intellectual Property. All rights reserved.
5 ===================================================================
6
7 Unless otherwise specified, all software contained herein is licensed
8 under the Apache License, Version 2.0 (the License);
9 you may not use this software except in compliance with the License.
10 You may obtain a copy of the License at
11
12     http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
20 */
21
22 // Karma configuration file, see link for more information
23 // https://karma-runner.github.io/1.0/config/configuration-file.html
24
25 module.exports = function (config) {
26   config.set({
27     basePath: '',
28     frameworks: ['jasmine', '@angular-devkit/build-angular'],
29     plugins: [
30       require('karma-jasmine'),
31       require('karma-chrome-launcher'),
32       require('karma-jasmine-html-reporter'),
33       require('karma-coverage-istanbul-reporter'),
34       require('@angular-devkit/build-angular/plugins/karma')
35     ],
36     client: {
37       clearContext: false // leave Jasmine Spec Runner output visible in browser
38     },
39     coverageIstanbulReporter: {
40       dir: require('path').join(__dirname, '../coverage'),
41       reports: ['html', 'lcovonly', 'text-summary'],
42       fixWebpackSourcePaths: true
43     },
44     reporters: ['progress', 'kjhtml'],
45     port: 9876,
46     colors: true,
47     logLevel: config.LOG_INFO,
48     autoWatch: true,
49     browsers: ['Chrome'],
50     singleRun: false
51   });
52 };