-
Notifications
You must be signed in to change notification settings - Fork 9
/
karma.conf.js
52 lines (51 loc) · 1.77 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
'use strict';
module.exports = function (config) {
config.set({
basePath: './',
files: [
{pattern: 'app/production.js', watched: false, included: false, served: true},
'app/bower_components/angular/angular.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/**/*.js',
{pattern: 'app/bower_components/**/*.js', watched: false, included: false, served: true},
],
exclude: [
'app/bower_components/bootstrap/**',
'app/bower_components/jquery/**',
'app/bower_components/*',
'app/bower_components/angular-mocks/ngAnimateMock.js',
'app/bower_components/angular-mocks/ngMock.js',
'app/bower_components/angular-mocks/ngMockE2E.js',
'app/bower_components/**/index.js'
],
autoWatch: true,
frameworks: [
'jasmine'
],
browsers: [
'PhantomJS'
],
plugins: [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-junit-reporter',
'karma-coverage'
],
junitReporter: {
outputFile: 'test_out/unit.xml',
suite: 'unit'
},
preprocessors : {
'app/appConstants/*.js': ['coverage'],
'app/appServices/*.js': ['coverage'],
'app/categories/*.js': ['coverage'],
'app/openBox/*.js': ['coverage'],
'app/productSearch/*.js': ['coverage'],
'app/recommendations/*.js': ['coverage'],
'app/smartLists/*.js': ['coverage'],
'app/stores/*.js': ['coverage']
},
reporters: ['coverage','dots']
});
};