-
Notifications
You must be signed in to change notification settings - Fork 35
/
karma.conf.js
102 lines (84 loc) · 3.01 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
module.exports = function (config) {
config.set({
preprocessors: {
'src/main/webapp/app/**/*.js': 'coverage',
'src/main/webapp/app/**/*.html': ['ng-html2js'],
},
reporters: ['progress', 'coverage', 'coveralls'],
basePath: './',
files: [
'dist/appConfig.js',
'src/main/webapp/app/config/apiMapping.js',
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/sockjs-client/dist/sockjs.js',
'node_modules/stompjs/lib/stomp.js',
'node_modules/angular/angular.js',
'node_modules/angular-sanitize/angular-sanitize.js',
'node_modules/angular-route/angular-route.js',
'node_modules/angular-loader/angular-loader.js',
'node_modules/angular-messages/angular-messages.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_modules/ng-sortable/dist/ng-sortable.js',
'node_modules/ng-csv/build/ng-csv.js',
'node_modules/ng-table/bundles/ng-table.js',
'node_modules/ng-file-upload/dist/ng-file-upload-shim.js',
'node_modules/ng-file-upload/dist/ng-file-upload.js',
'node_modules/jasmine-promise-matchers/dist/jasmine-promise-matchers.js',
'node_modules/tinymce/tinymce.js',
'node_modules/angular-ui-tinymce/dist/tinymce.min.js',
'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js',
'node_modules/file-saver/dist/FileSaver.js',
'node_modules/@wvr/core/app/config/coreConfig.js',
'node_modules/@wvr/core/app/components/**/*.js',
'node_modules/@wvr/core/app/core.js',
'node_modules/@wvr/core/app/**/*.js',
'src/main/webapp/tests/testSetup.js',
'src/main/webapp/app/app.js',
'src/main/webapp/app/config/runTime.js',
'src/main/webapp/app/components/**/*.js',
'src/main/webapp/app/constants/**/*.js',
'src/main/webapp/app/controllers/**/*.js',
'src/main/webapp/app/directives/**/*.js',
'src/main/webapp/app/factories/**/*.js',
'src/main/webapp/app/filters/**/*.js',
'src/main/webapp/app/model/**/*.js',
'src/main/webapp/app/repo/**/*.js',
'src/main/webapp/app/services/**/*.js',
'src/main/webapp/tests/core/**/*.js',
'src/main/webapp/tests/mocks/**/*.js',
'src/main/webapp/tests/unit/**/*.js'
],
autoWatch: true,
frameworks: ['jasmine'],
browsers: ['ChromeHeadless'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
plugins: [
'karma-chrome-launcher',
'karma-coverage',
'karma-coveralls',
'karma-firefox-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-ng-html2js-preprocessor',
],
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit',
},
ngHtml2JsPreprocessor: {
stripPrefix: 'src/main/webapp/app/',
moduleName: 'templates',
},
coverageReporter: {
type: 'lcov',
dir: 'coverage/',
subdir: '.',
}
});
};