This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
forked from hdeadman/mailsink
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
48 lines (48 loc) · 2.23 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
module.exports = function(config) {
config.set({
files: [
'target/dependency/META-INF/resources/webjars/jquery/**/jquery.js',
'target/dependency/META-INF/resources/webjars/angular/**/angular.js',
'target/dependency/META-INF/resources/webjars/angular-sanitize/**/angular-sanitize.js',
'target/dependency/META-INF/resources/webjars/angular-mocks/**/angular-mocks.js',
'target/dependency/META-INF/resources/webjars/angular-ui-bootstrap-bower/**/ui-bootstrap-tpls.min.js',
'target/dependency/META-INF/resources/webjars/angular-ui-bootstrap-bower/**/ui-bootstrap.min.js',
'target/dependency/META-INF/resources/webjars/stomp-websocket/**/lib/stomp.js',
'target/dependency/META-INF/resources/webjars/angular-scroll-glue/**/src/scrollglue.js',
'target/dependency/META-INF/resources/webjars/CBuffer/**/cbuffer.js',
'target/dependency/META-INF/resources/webjars/angular-clipboard/**/angular-clipboard.js',
'target/dependency/META-INF/resources/webjars/highlightjs/**/highlight.pack.min.js',
'target/dependency/META-INF/resources/webjars/angular-highlightjs/**/build/angular-highlightjs.min.js',
'src/main/resources/static/app.js',
'src/test/javascript/*.js',
'src/main/resources/static/*.html'
],
preprocessors: {
'src/main/resources/static/app.js': ['coverage'],
'**/*.html': ['ng-html2js']
},
ngHtml2JsPreprocessor: {
stripPrefix: 'src/main/resources/static/',
moduleName: 'htmlTemplates'
},
coverageReporter: {
type : 'lcov',
dir : 'target/karma-reports/coverage/',
subdir: '.'
},
sonarQubeUnitReporter: {
sonarQubeVersion: 'LATEST',
outputFile: 'target/karma-reports/TEST.xml',
useBrowserName: false
},
frameworks: ['jasmine'],
reporters: ['progress', 'coverage', 'sonarqubeUnit'],
port: 9876,
colors: false,
logLevel: config.LOG_WARN,
autoWatch: true,
browsers: ['PhantomJS2'],
captureTimeout: 60000,
singleRun: true
});
};