forked from app-bootstrap/web-app-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacaca-reliable.config.js
50 lines (44 loc) · 929 Bytes
/
macaca-reliable.config.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
'use strict';
const {
webUtils,
getDepsPkgVersion,
} = require('reliable-cli/lib/helper');
const testResult = require('./reports/json-final');
const coverageResult = require('./coverage/coverage-final');
const {
lines
// statements,
// functions,
// branches
} = webUtils.summarizedCoverage(coverageResult);
const {
tests,
passes,
passPercent
} = testResult.stats;
const res = {
files: [
'coverage',
'reports',
'screenshots',
'dist',
'index.html'
],
packages: [
],
testInfo: {
tests,
passes,
passPercent,
linePercent: lines.pct,
testHtmlReporterPath: 'reports/index.html',
coverageHtmlReporterPath: 'coverage/index.html'
},
extraInfo: {
'reilable-cli': getDepsPkgVersion('reilable-cli'),
'macaca-wd': getDepsPkgVersion('macaca-wd'),
'vue': getDepsPkgVersion('vue'),
}
};
console.log(JSON.stringify(res, null, 2));
module.exports = res;