-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
79 lines (69 loc) · 2.62 KB
/
Copy pathkarma.conf.js
File metadata and controls
79 lines (69 loc) · 2.62 KB
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
module.exports = function(config) {
config.set({
basePath: './',
files: [
'app/bower_components/jquery/dist/jquery.js',
'app/bower_components/angular/angular.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-animate/angular-animate.js',
'app/bower_components/angular-aria/angular-aria.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-sanitize/angular-sanitize.js',
'app/bower_components/ngInfiniteScroll/build/ng-infinite-scroll.js',
'app/bower_components/angular-material/angular-material.js',
'app/bower_components/hammerjs/hammer.js',
'app/js/mensajes.js',
'app/app.js',
'app/index*/**/*.js',
'app/buscar*/**/*.js',
'app/facet*/**/*.js',
'app/sector*/**/*.js',
'app/js/version*/**/*.js',
'app/js/services*.js',
'app/js/directives*.js',
'app/js/filters*.js',
'app/bower_components/leaflet/dist/leaflet.js',
'app/bower_components/angular-leaflet-directive/dist/angular-leaflet-directive.js',
'app/bower_components/angular-material/angular-material.min.css',
'app/bower_components/angular-bootstrap/ui-bootstrap.min.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js'
],
autoWatch: true,
frameworks: ['jasmine'],
browsers: ['Chrome'],
plugins: [
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-coverage',
'karma-junit-reporter',
'karma-htmlfile-reporter'
],
junitReporter: {
outputFile: 'test-results/unit.xml',
suite: 'unit'
},
preprocessors: {
'app/{*.js,!(bower_components)/**/*.js}': 'coverage'
},
// test results reporter to use
// report on progress, collect coverage and junit reports
reporters: ['progress', 'coverage', 'junit', 'html'],
htmlReporter: {
outputFile: 'test-results/units.html'
},
//use cobertura coverage report for jenkins integration
coverageReporter: {
reporters: [
{
type: 'cobertura',
dir: 'test-results/'
},
{
type: 'html',
dir: 'test-results/'
}
]
},
});
};