forked from ni/VireoSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.coverage.conf.js
53 lines (42 loc) · 1.32 KB
/
karma.coverage.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
// Karma configuration
// Generated on Mon Dec 12 2016 13:30:12 GMT-0600 (Central Standard Time)
module.exports = function (config) {
'use strict';
var sharedConfig = require('./karma.shared.js');
sharedConfig.files = sharedConfig.files.concat([
// test assets
'test-it/karma/utilities/extendJasmineTimeout.longrun.js',
// test specs
'test-it/karma/publicapi/*.test.js',
'test-it/karma/http/*.test.js',
'test-it/karma/longrun/*.test.js'
]);
// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
sharedConfig.logLevel = config.LOG_INFO;
sharedConfig.browsers = [
'Firefox'
];
sharedConfig.reporters = [
'dots',
'coverage'
];
sharedConfig.preprocessors['source/core/*.js'] = ['coverage'];
sharedConfig.preprocessors['source/io/*.js'] = ['coverage'];
sharedConfig.coverageReporter = {
dir: 'coverage',
reporters: [
{
type: 'html',
subdir: 'report'
},
{
type: 'text',
subdir: '.',
file: 'report.txt'
}
]
};
sharedConfig.singleRun = true;
config.set(sharedConfig);
};