-
Notifications
You must be signed in to change notification settings - Fork 74
/
karma.conf.js
48 lines (48 loc) · 1.26 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
// Karma configuration
// Generated on Sat May 09 2015 01:51:50 GMT+0200 (W. Europe Summer Time)
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['qunit', 'commonjs', 'jquery-2.1.0'],
plugins: [
'karma-jquery',
'karma-qunit',
'karma-chrome-launcher',
'karma-commonjs',
'karma-coverage'
],
files: [
'index.js',
'helpers.js',
'document.js',
{pattern: 'test/public/jquery.js'},
{pattern: 'src/**/*.js'},
{pattern: 'node_modules/lodash/**/*.js'},
{pattern: 'test/fixtures/*.js'},
{pattern: 'test/test_article/*.js'},
{pattern: 'test/unit/*.js'},
{pattern: 'test/unit/**/*.test.js'}
],
exclude: [
],
preprocessors: {
"*.js": ["commonjs"],
"src/**/*.js": ["commonjs"],
"test/**/*.js": ["commonjs"],
"node_modules/lodash/**/*.js": ["commonjs"],
// compute test coverage only for the real modules
"src/!(basics)/**/!(index).js": ["coverage"],
},
reporters: ['progress', 'coverage'],
coverageReporter: {
type : 'html',
dir : 'coverage/'
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: false,
browsers: ['Chrome'],
singleRun: true
});
};