-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
119 lines (94 loc) · 3.73 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
// Karma configuration
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['mocha', 'sinon-chai'],
// list of files / patterns to load in the browser
files: [
'test/runner.html',
// the big guns
'app/vendor/jquery-1.9.1.js',
'app/vendor/moment/moment.min.js',
'app/vendor/underscore/underscore-1.5.2.js',
'https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.js',
'app/vendor/angular/angular-mocks.js',
'app/vendor/angular-ui-bootstrap/*.js',
'app/vendor/ng-grid/ng-grid-2.0.7.debug.js',
'app/vendor/angular-truncate/truncate.js',
// livingdocs designs
'app/vendor/livingmaps-design/design.js',
// livingdocs-engine
'https://s3.amazonaws.com/datablog-assets/livingdocs-engine/vendor/yepnope/yepnope.1.5.3-min.js',
'https://s3.amazonaws.com/datablog-assets/livingdocs-engine/vendor/editableJS/editable.min.js',
'https://s3.amazonaws.com/datablog-assets/livingdocs-engine/vendor/lz-string/lz-string-1.3.3.js',
'https://s3.amazonaws.com/datablog-assets/livingdocs-engine/vendor/store/store.js',
'https://s3.amazonaws.com/datablog-assets/livingdocs-engine/livingdocs_engine.min.js',
// Leaflet
'http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js',
'https://s3.amazonaws.com/datablog-assets/leaflet.awesome-markers.js',
'https://s3.amazonaws.com/datablog-assets/l.control.geosearch.js',
'https://s3.amazonaws.com/datablog-assets/l.geosearch.provider.openstreetmap.js',
// Maps
'app/vendor/leaflet/angular_leaflet_directive.js',
// D3
'http://d3js.org/d3.v3.js',
'https://s3.amazonaws.com/datablog-assets/d3.geo.projection.min.js',
// ngProgress
'app/vendor/ng_progress/ng_progress.js',
// API
'app/scripts/components/environment/constants.js',
// APP
'app/scripts/utils/*.coffee',
'app/scripts/app.coffee',
'app/scripts/controllers/*.coffee',
'app/scripts/directives/*.coffee',
'app/scripts/models/*.coffee',
'app/scripts/services/*.coffee',
'app/scripts/templates/*.coffee',
'app/scripts/components/testApi/component.coffee',
'app/scripts/components/testApi/*.coffee',
'test/spec/**/*.coffee'
],
// NOTE: The first preprocessor should also include 'coverage'
// At the moment coffeescript code coverage is broken, but this pull-request
// should fix it. Staying tuned...
// https://github.com/karma-runner/karma-coverage/pull/19
preprocessors: {
'app/scripts/**/*.coffee': ['coffee'],
'test/**/*.coffee': ['coffee'],
"test/*.html": "html2js"
},
// list of files to exclude
exclude: [],
// test results reporter to use
// possible values: dots || progress || growl
reporters: ['spec'],
// web server port
port: 8090,
// cli runner port
runnerPort: 9100,
// enable / disable colors in the output (reporters and logs)
colors: true,
// 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: true,
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: ['PhantomJS'],
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 15000,
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false
});
};