-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathkarma.conf.js
114 lines (98 loc) · 4.74 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
103
104
105
106
107
108
109
110
111
112
113
114
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// testing framework to use (jasmine/mocha/qunit/...)
frameworks: ['jasmine', 'sinon'],
// list of files / patterns to load in the browser
files: [
'app/bower_components/jquery/jquery.js',
'app/bower_components/angular/angular.js',
'app/bower_components/angulartics/dist/angulartics.min.js',
'app/bower_components/angulartics/dist/angulartics-ga.min.js',
'app/bower_components/angular-rangeslider/angular.rangeSlider.js',
'app/bower_components/angular-mocks/angular-mocks.js',
'app/bower_components/angular-resource/angular-resource.js',
'app/bower_components/angular-cookies/angular-cookies.js',
'app/bower_components/angular-sanitize/angular-sanitize.js',
'app/bower_components/angular-route/angular-route.js',
'app/bower_components/angular-local-storage/dist/angular-local-storage.min.js',
'app/bower_components/angular-translate/angular-translate.js',
'app/bower_components/angular-dialog-service/dialogs.min.js',
'app/bower_components/angular-dialog-service/dist/dialogs-default-translations.min.js',
'app/bower_components/spin.js/spin.js',
'app/bower_components/ng-sortable/dist/ng-sortable.js',
'app/bower_components/spin.js/jquery.spin.js',
'app/bower_components/angular-spinner/angular-spinner.js',
'app/bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
'app/bower_components/lodash/dist/lodash.js',
'app/bower_components/lodash-contrib/dist/lodash-contrib.js',
'app/bower_components/underscore.string/dist/underscore.string.min.js',
'app/bower_components/angular-grid/build/ng-grid.js',
'app/bower_components/ng-table/ng-table.min.js',
'app/lib/ng_table/ng-table-resizable-columns.src.js',
'app/bower_components/angular-ui-router/release/angular-ui-router.js',
'app/bower_components/select2/select2.js',
'app/bower_components/angular-ui-select2/src/select2.js',
'app/bower_components/angular-aria/angular-aria.js',
'app/bower_components/leaflet/dist/leaflet.js',
'app/bower_components/leaflet/dist/leaflet-src.js',
'app/bower_components/leaflet.draw/dist/leaflet.draw.js',
'app/bower_components/angular-leaflet-directive/dist/angular-leaflet-directive.min.js',
'app/bower_components/leaflet.markercluster/dist/leaflet.markercluster.js',
'app/bower_components/angular-block-ui/dist/angular-block-ui.min.js',
'app/lib/tree/*.js',
'app/config.js',
'app/common/**/*module.js',
'app/common/**/*.js',
'app/src/**/*module.js',
'app/src/**/*.js',
//'app/scripts/*.js',
//'app/scripts/**/*.js',
'test/mock/**/*.js',
'test/spec/**/*.js',
'app/src/**/*.html'
],
// list of files / patterns to exclude
exclude: ['app/src/initializer.js'],
// coverage reporter generates the coverage
reporters: ['progress', 'coverage'],
// web server port
//port: 8080,
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_INFO,
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['Chrome'],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,
preprocessors: {
'**/**/*.html': 'ng-html2js',
'app/src/**/*.js': ['coverage']
},
ngHtml2JsPreprocessor: {
// setting this option will create only a single module that contains templates
// from all the files, so you can load them all with module('foo')
stripPrefix: 'app/',
moduleName: 'templates'
},
coverageReporter: {
reporters:[
{type: 'html', dir:'test/coverage/', subdir: 'html-report'},
{type: 'cobertura', dir:'test/coverage/', subdir: 'cobertura-report'}
]
}
});
};