forked from greasemonkey/greasemonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
43 lines (41 loc) · 1.24 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
module.exports = function(config) {
config.set({
files: [
'./test/setup.js',
'./third-party/convert2RegExp.js',
'./third-party/MatchPattern.js',
'./third-party/jszip/jszip.min.js',
'./src/**/*.js',
'./test/**/*.test.js',
{'pattern': './skin/**', 'included': false, 'served': true},
],
exclude: [
'./src/i18n.js', // Use test set up version instead.
'./src/**/*.run.js',
'./src/content/edit-user-script.js', // CodeMirror dependency.
'./src/content/install-dialog.js', // Not ready for testing yet. TODO!
'./src/util/rivets-formatters.js',
],
frameworks: ['chai', 'mocha', 'sinon', 'sinon-chrome'],
preprocessors: config.coverage
? {'src/**/*.js': ['coverage']}
: {},
reporters: process.env.KARMA_REPORTER
? [process.env.KARMA_REPORTER]
: ['coverage', 'progress'],
port: 7328,
colors: true,
logLevel: config.LOG_WARN,
autoWatch: true,
browsers: ['FirefoxHeadless'],
// https://github.com/karma-runner/karma-firefox-launcher/issues/76
customLaunchers: {
FirefoxHeadless: {
base: 'Firefox',
flags: [ '-headless' ],
},
},
singleRun: true,
concurrency: Infinity
})
};