-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathkarma.conf.js
66 lines (56 loc) · 1.86 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
module.exports = function(config){
config.set({
basePath : './',
files : [
'app/bower_components/angular/angular.js',
'app/bower_components/angular-messages/angular-messages.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'app/bower_components/angular-bootstrap-lightbox/dist/angular-bootstrap-lightbox.min.js',
'node_modules/karma-read-json/karma-read-json.js',
'app/brenda-help/*.js',
'app/components/**/*.js',
'app/awsSetup/awsSetup.module.js',
'app/awsSetup/awsService.service.js',
'app/awsSetup/awsConfigure.ctrl.js',
'app/awsSetup/awsSetup.ctrl.js',
'app/awsSetup/jobSetup.ctrl.js',
'app/awsSetup/s3.ctrl.js',
'app/awsSetup/workerSetup.ctrl.js',
'app/awsSetup/setup.ctrl.js',
'app/awsSetup/aws.service.js',
'app/awsSetup/queueToName.filter.js',
'app/dashboard/dashboard.js',
'app/dashboard/*.js',
'app/app.js',
'tests/unit/**/*.js',
{pattern: 'app/*.json', watched: true, served: true, included: false}
],
preprocessors: {
'app/awsSetup/*.js': ['coverage'],
'app/dashboard/*.js': ['coverage'],
'app/brenda-help/*.js': ['coverage'],
'app/app.js': ['coverage']
},
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-coverage'
],
junitReporter : {
outputFile: 'test_out/junit/unit.xml',
suite: 'unit'
},
coverageReporter: {
type: 'html',
dir: 'test_out/coverage'
},
reporters: ['progress', 'coverage', 'junit']
});
};