-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
126 lines (109 loc) · 5.01 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
115
116
117
118
119
120
121
122
123
124
125
126
// 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'],
// list of files / patterns to load in the browser
files: [
'target/dist/bower_components/es5-shim/es5-shim.js',
'target/dist/bower_components/json3/lib/json3.min.js',
'target/dist/bower_components/jquery/dist/jquery.min.js',
'target/dist/bower_components/angular/angular.min.js',
'target/dist/bower_components/angular-animate/angular-animate.min.js',
'target/dist/bower_components/angular-resource/angular-resource.min.js',
'target/dist/bower_components/angular-sanitize/angular-sanitize.min.js',
'target/dist/bower_components/angular-bootstrap/ui-bootstrap.min.js',
'target/dist/bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js',
'target/dist/bower_components/leaflet/dist/leaflet.js',
'target/dist/bower_components/angular-leaflet-directive/dist/angular-leaflet-directive.min.js',
'target/dist/bower_components/leaflet-draw/dist/leaflet.draw.js',
'target/dist/bower_components/Wicket/wicket.js',
'target/dist/bower_components/Wicket/wicket-leaflet.js',
'target/dist/bower_components/angular-wizard/dist/angular-wizard.min.js',
'target/dist/bower_components/ui-select/dist/select.min.js',
'target/dist/bower_components/angular-uuid-service/angular-uuid-service.min.js',
'target/dist/bower_components/esri-leaflet/dist/esri-leaflet.js',
'target/dist/scripts/app.js',
'target/dist/scripts/controllers/_module.js',
'target/dist/scripts/controllers/masterController.js',
'target/dist/scripts/controllers/odRegistrationController.js',
'target/dist/scripts/controllers/keywordsController.js',
'target/dist/scripts/controllers/geoLocationController.js',
'target/dist/scripts/controllers/licenseController.js',
'target/dist/scripts/controllers/summaryController.js',
'target/dist/scripts/controllers/storageController.js',
'target/dist/scripts/directives/_module.js',
'target/dist/scripts/services/_module.js',
'target/dist/scripts/services/dataset.js',
'target/dist/scripts/services/representationFactory.js',
'target/dist/scripts/services/geoTools.js',
'target/dist/scripts/services/tagGroupService.js',
'target/dist/scripts/services/countriesService.js',
'target/dist/scripts/services/searchService.js',
'target/dist/scripts/services/storageService.js',
'target/dist/scripts/services/featureRendererService.js',
'target/dist/scripts/services/zenodoService.js',
'target/dist/scripts/factories/_module.js',
'target/dist/scripts/factories/appConfigFactory.js',
'target/dist/scripts/filters/_module.js',
'target/dist/scripts/filters/functionFilter.js',
'target/dist/scripts/filters/contenttypeFilter.js',
'target/dist/scripts/filters/limitFilter.js',
'target/dist/scripts/filters/plainTextFilter.js',
'target/dist/bower_components/angular-mocks/angular-mocks.js',
'app/templates/confirmation.html',
'app/templates/geographicLocation.html',
'app/templates/keywordSelection.html',
'app/templates/licenseAndConditions.html',
'app/templates/openDataRegistration.html',
'app/templates/summary.html',
'app/templates/wizard-step-tpl.html',
'app/templates/wizard-tpl.html',
'test/spec/services/representationFactoryTest.js',
{pattern: 'test/res/**/*.json', watched: true, included: true, served: true}
],
// list of files / patterns to exclude
exclude: [],
// web server port
port: 8088,
// 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: ['PhantomJS'],
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: true,
preprocessors: {
'**/*.json': ['ng-json2js'],
'**/templates/**/*.html': ['ng-html2js'],
'**/views/**/*.html': ['ng-html2js']
},
plugins: [
'karma-ng-html2js-preprocessor',
'karma-ng-json2js-preprocessor',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-junit-reporter'
],
ngHtml2JsPreprocessor: {
moduleName: 'templates'
},
reporters: ['progress', 'junit'],
junitReporter: {
outputFile: 'test-results.xml'
}
});
};