-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
77 lines (62 loc) · 2.17 KB
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* Copyright 2012-2017 Red Hat, Inc.
*
* Thermostat is distributed under the GNU General Public License,
* version 2 or any later version (with a special exception described
* below, commonly known as the "Classpath Exception").
*
* A copy of GNU General Public License (GPL) is included in this
* distribution, in the file COPYING.
*
* Linking Thermostat code with other modules is making a combined work
* based on Thermostat. Thus, the terms and conditions of the GPL
* cover the whole combination.
*
* As a special exception, the copyright holders of Thermostat give you
* permission to link this code with independent modules to produce an
* executable, regardless of the license terms of these independent
* modules, and to copy and distribute the resulting executable under
* terms of your choice, provided that you also meet, for each linked
* independent module, the terms and conditions of the license of that
* module. An independent module is a module which is not derived from
* or based on Thermostat code. If you modify Thermostat, you may
* extend this exception to your version of the software, but you are
* not obligated to do so. If you do not wish to do so, delete this
* exception statement from your version.
*/
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'should-sinon', 'sinon', 'should'],
files: [
'src/app/components/auth/keycloak.stub.js',
'src/tests.webpack.js'
],
preprocessors: {
'src/app/components/auth/keycloak.stub.js': ['webpack', 'sourcemap'],
'src/tests.webpack.js': ['webpack', 'sourcemap']
},
reporters: ['mocha', 'beep', 'junit', 'coverage-istanbul'],
junitReporter: {
outputDir: 'test-reports'
},
coverageIstanbulReporter: {
reports: ['text-summary', 'html', 'cobertura'],
fixWebpackSourcePaths: true,
'report-config': {
html: {
subdir: 'html'
}
}
},
exclude: [],
port: 9876,
colors: true,
browsers: ['PhantomJS'],
webpack: require('./webpack.config'),
webpackMiddleware: {
noInfo: 'errors-only'
},
singleRun: true
});
};