This repository has been archived by the owner on Aug 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
111 lines (108 loc) · 2.59 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*!
* SAP UI5 Scrum Board v0.0.1
* Copyright (c) 2015 abat AG
* Date: 2015-03-02
*/
"use strict";
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['qunit', 'openui5'],
openui5: {
path: 'bower_components/openui5-sap.ui.core/resources/sap-ui-core.js',
useMockServer: true
},
client: {
openui5: {
config: {
theme: 'sap_bluecrystal',
libs: 'sap.m',
resourceroots: {
'sap.m': '/base/bower_components/openui5-sap.m/resources/sap/m',
'de.abat.scrumui5.test': '/base/test',
'de.abat.scrumui5': '/base/app'
},
themeroots: {
'sap_bluecrystal': '/base/bower_components/openui5-themelib_sap_bluecrystal/resources'
},
preload: ''
},
mockserver: {
config: {
autoRespond: true
},
rootUri: 'http://user:pass@uri:8000/sap/opu/odata/sap/Z_ZAV_SCRUM_SRV/',
metadataURL: '/base/test/service/metadata.xml',
mockdataSettings: '/base/test/service'
}
}
},
files: [{
pattern: 'bower_components/openui5-sap.ui.core/resources/**/*',
served: true,
included: false,
watched: false
}, {
pattern: 'bower_components/openui5-sap.m/resources/**/*',
served: true,
included: false,
watched: false
}, {
pattern: 'bower_components/openui5-sap.ui.layout/resources/**/*',
served: true,
included: false,
watched: false
}, {
pattern: 'bower_components/openui5-themelib_sap_bluecrystal/resources/**/*',
served: true,
included: false,
watched: false
}, {
pattern: 'app/**/*',
served: true,
included: false,
watched: true
}, {
pattern: 'test/action/*',
served: true,
included: true,
watched: true
}, {
pattern: 'test/arrangement/*',
served: true,
included: true,
watched: true
}, {
pattern: 'test/assertion/*',
served: true,
included: true,
watched: true
}, {
pattern: 'test/*.js',
served: true,
included: true,
watched: true
}, {
pattern: 'test/service/*',
served: true,
included: false,
watched: true
}],
exclude: [],
preprocessors: {
'app/**/*.js': ['coverage']
},
reporters: ['progress', 'coverage'],
port: 9876,
colors: true,
// Possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// Watching files and executing tests whenever any file changes
// Disable for WebStorm (use integrated auto-test instead)
autoWatch: false,
browsers: ['Chrome'],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
});
};