forked from ni/VireoSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.coverage.conf.js
56 lines (46 loc) · 1.45 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
54
55
56
// Copyright (c) 2020 National Instruments
// SPDX-License-Identifier: MIT
// Karma configuration
(function () {
'use strict';
module.exports = function (config) {
var getSharedConfig = require('./karma.shared.js');
var sharedConfig = getSharedConfig(config);
sharedConfig.files = [
...sharedConfig.filesPolyfills,
...sharedConfig.filesInfrastructure,
'dist/wasm32-unknown-emscripten/release/vireo.js',
{
pattern: 'dist/wasm32-unknown-emscripten/release/vireo.core.wasm',
included: false
},
...sharedConfig.filesSource,
...sharedConfig.filesFixtures,
...sharedConfig.filesSpecs
];
sharedConfig.browsers = [
'FirefoxHeadless'
];
sharedConfig.reporters = [
'dots',
'coverage'
];
sharedConfig.preprocessors['dist/wasm32-unknown-emscripten/release/vireo.js'] = ['coverage'];
sharedConfig.coverageReporter = {
dir: 'coverage',
reporters: [
{
type: 'html',
subdir: 'report'
},
{
type: 'text',
subdir: '.',
file: 'report.txt'
}
]
};
sharedConfig.singleRun = true;
config.set(sharedConfig);
};
}());