forked from juice-shop/juice-shop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
59 lines (48 loc) · 1.73 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
module.exports = function (config) {
'use strict'
config.set({
basePath: '',
files: [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-translate/angular-translate.js',
'app/bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-cookies/angular-cookies.js',
'app/bower_components/angular-touch/angular-touch.js',
'app/bower_components/angular-animate/angular-animate.js',
'app/bower_components/angular-bootstrap/ui-bootstrap.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'app/bower_components/underscore/underscore.js',
'app/bower_components/jquery/dist/jquery.js',
'app/bower_components/ng-file-upload/ng-file-upload.js',
'app/bower_components/angular-socket.io-mock/angular-socket.io-mock.js',
'app/bower_components/clipboard/dist/clipboard.js',
'app/bower_components/ngclipboard/dist/ngclipboard.js',
'app/bower_components/angular-base64/angular-base64.js',
'app/js/**/*.js',
'test/client/**/*.js'
],
colors: true,
singleRun: true,
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage',
'karma-junit-reporter'
],
reporters: ['progress', 'coverage', 'junit'],
coverageReporter: {
type: 'lcov',
dir: 'build/reports/coverage'
},
preprocessors: {
'app/js/**/*.js': 'coverage'
},
junitReporter: {
outputDir: 'build/reports'
}
})
}