-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
59 lines (50 loc) · 1.89 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
// Note some browser launchers should be installed before using karma start.
// For example:
// $ npm install karma-firefox-launcher
// $ karma start --browser=Firefox
// See http://karma-runner.github.io/0.8/config/configuration-file.html
module.exports = function(config) {
"use strict";
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
port: 9876,
colors: true,
autoWatch: false,
// list of files / patterns to load in the browser
files: [
'node_modules/q/q.js',
'node_modules/redis-js/redis-mock.js',
'util/redis-util.js',
'util/redis-uuid.js',
'util/redis-scanner.js',
'util/redis-expirer.js',
'concurrency/redis-cas.js',
'concurrency/redis-concurrency.js',
'adapter/redis-list-adapter.js',
'reliable/redis-reliable-deleter.js',
'reliable/redis-reliable-mover.js',
'reliable/redis-reliable-locker.js',
'reliable/redis-reliable-producer.js',
'reliable/redis-reliable-consumer.js',
'rarefied-redis.js',
'test/mocha/*.js'
],
client: {
captureConsole: true,
mocha: {
reporter: 'spec' // change Karma's debug.html to the mocha spec reporter
}
},
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
//browsers: ['PhantomJS', 'Firefox'],
browsers: ['PhantomJS'],
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
});
};