forked from nyarly/NinjaScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkarma-min.conf.js
More file actions
33 lines (27 loc) · 800 Bytes
/
Copy pathkarma-min.conf.js
File metadata and controls
33 lines (27 loc) · 800 Bytes
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
module.exports = function(config){
var coverage = process.env["COVERAGE"]
var conf = {};
conf.files = [
'spec_support/jquery-1.6.1.js',
'spec_support/fixtures/*.js',
'spec_support/**/*.html',
'generated/javascript/ns.min.js',
'spec/**/*.js'
];
conf.autoWatch = true;
conf.browsers = ['Chrome'];
conf.frameworks = ['jasmine', 'sinon', 'closure'];
//conf.plugins = ['karma-closure'];
conf.preprocessors = {
"spec_support/fixtures/**/*.html": ['html2js'],
"spec_support/fixtures/**/*.js": ['html2js'],
'generated/javascript/**/*.js': ['coverage']
};
conf.singleRun = true;
conf.reporters = ['coverage', 'progress'];
conf.junitReporter = {
outputFile: 'test_out/unit.xml',
suite: 'unit'
};
config.set(conf);
}