-
Notifications
You must be signed in to change notification settings - Fork 1
/
karma.conf.js
83 lines (75 loc) · 3.53 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
module.exports = function (config) {
var bowerComponentsPath = 'vendor/assets/javascripts/bower_components/',
appJsPath = 'app/assets/javascripts/';
config.set({
basePath: '',
frameworks: ['browserify', 'mocha'],
files: [
'https://cdn.socket.io/socket.io-1.3.5.js',
bowerComponentsPath + '/chai/chai.js',
bowerComponentsPath + 'sinon/lib/sinon.js',
bowerComponentsPath + 'sinon/lib/sinon/util/core.js',
bowerComponentsPath + 'sinon/lib/sinon/extend.js',
bowerComponentsPath + 'sinon/lib/sinon/typeOf.js',
bowerComponentsPath + 'sinon/lib/sinon/times_in_words.js',
bowerComponentsPath + 'sinon/lib/sinon/spy.js',
bowerComponentsPath + 'sinon/lib/sinon/call.js',
bowerComponentsPath + 'sinon/lib/sinon/behavior.js',
bowerComponentsPath + 'sinon/lib/sinon/stub.js',
bowerComponentsPath + 'sinon/lib/sinon/mock.js',
bowerComponentsPath + 'sinon/lib/sinon/collection.js',
bowerComponentsPath + 'sinon/lib/sinon/assert.js',
bowerComponentsPath + 'sinon/lib/sinon/sandbox.js',
bowerComponentsPath + 'sinon/lib/sinon/test.js',
bowerComponentsPath + 'sinon/lib/sinon/test_case.js',
bowerComponentsPath + 'sinon/lib/sinon/match.js',
bowerComponentsPath + 'sinon/lib/sinon/format.js',
bowerComponentsPath + 'sinon/lib/sinon/log_error.js',
bowerComponentsPath + 'jquery/dist/jquery.js',
bowerComponentsPath + 'underscore/underscore.js',
bowerComponentsPath + 'backbone/backbone.js',
bowerComponentsPath + 'backbone.babysitter/lib/backbone.babysitter.js',
bowerComponentsPath + 'backbone.wreqr/lib/backbone.wreqr.js',
bowerComponentsPath + 'marionette/lib/backbone.marionette.js',
bowerComponentsPath + 'marionette-formview/dist/FormView.js',
bowerComponentsPath + 'backbone.localStorage/backbone.localStorage.js',
bowerComponentsPath + 'backbone.mutators/backbone.mutators.js',
bowerComponentsPath + 'backbone.routefilter/dist/backbone.routefilter.js',
bowerComponentsPath + 'js-md5/js/md5.js',
bowerComponentsPath + 'jade/runtime.js',
bowerComponentsPath + 'materialize/dist/js/materialize.js',
bowerComponentsPath + 'easeljs/lib/easeljs-0.7.1.min.js',
appJsPath + 'config/**/*.js',
appJsPath + 'application.js',
appJsPath + 'backbone/app.js',
appJsPath + 'backbone/lib/utilities/**/*.js',
appJsPath + 'backbone/lib/controllers/**/*.js',
appJsPath + 'backbone/lib/components/**/*.js',
appJsPath + 'backbone/entities/**/*.js',
appJsPath + 'backbone/behaviors/behaviors.js',
appJsPath + 'backbone/behaviors/form_behavior.js',
appJsPath + 'backbone/apps/**/*.js',
'test/_setup.js',
'test/**/*test.js'
],
browserify: {
debug: true
},
preprocessors: {
'test/**/*test.js': ['browserify']
},
reporters: ['progress'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browserNoActivityTimeout: 10000,
customLaunchers: {
ChromeTravisCi: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: false
});
};