/
karma.conf.js
94 lines (93 loc) · 3.41 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
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['openui5','qunit'],
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: 'WebContent/**/*',
served: true,
included: false,
watched: true
}, {
pattern: 'WebContent/test/**/*.qunit.js',
served: true,
included: true,
watched: true
}],
proxies: {
"/base/WebContent/resources/": "/base/bower_components/openui5-sap.ui.core/resources/"
},
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',
'sap.ui.layout': '/base/bower_components/openui5-sap.ui.layout/resources/sap/ui/layout',
'sap.ui': '/base/bower_components/openui5-sap.ui.core/resources/sap/ui',
'test': '/base/WebContent/test',
'sap.ui.demo.bulletinboard': '/base/WebContent',
'sap.ui.demo.bulletinboard.app' : '/base/WebContent/test/testService',
'sap.ui.demo.bulletinboard.test' : '/base/WebContent/test'
},
themeroots: {
'sap_bluecrystal': '/base/bower_components/openui5-themelib_sap_bluecrystal/resources'
}
},
mockserver: {
config: {
autoRespond: true
},
rootUri: '/data/',
metadataURL: '/base/WebContent/localService/metadata.xml',
mockdataSettings: {'sMockdataBaseUrl':'/base/WebContent/localService/mockdata/','bGenerateMissingMockData' : 'true'}
}
}
},
reporters: ['progress','junit'],
junitReporter: {
outputDir: '', // results will be saved as $outputDir/$browserName.xml
outputFile: undefined, // if included, results will be saved as $outputDir/$browserName/$outputFile
suite: 'openui5', // suite will become the package name attribute in xml testsuite element
useBrowserName: true // add browser name to report and classes names
},
port: 9876,
colors: true,
logLevel: config.LOG_DEBUG,
loggers: [{type:'console'},
{
"type": "file",
"filename": "karma.log",
"maxLogSize": 20480,
"backups": 3
}
],
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};