mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 23:07:08 +01:00
Add build of the last changes
This commit is contained in:
parent
40d9ace8d8
commit
c0c211fd68
2 changed files with 5 additions and 2 deletions
5
dist/index.js
generated
vendored
5
dist/index.js
generated
vendored
|
|
@ -931,6 +931,7 @@ class GoJunitParser {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getTestRunResult(path, junit) {
|
getTestRunResult(path, junit) {
|
||||||
|
var _a;
|
||||||
const suites = junit.testsuites.testsuite === undefined
|
const suites = junit.testsuites.testsuite === undefined
|
||||||
? []
|
? []
|
||||||
: junit.testsuites.testsuite.map(ts => {
|
: junit.testsuites.testsuite.map(ts => {
|
||||||
|
|
@ -939,7 +940,9 @@ class GoJunitParser {
|
||||||
const sr = new test_results_1.TestSuiteResult(name, this.getGroups(ts), time);
|
const sr = new test_results_1.TestSuiteResult(name, this.getGroups(ts), time);
|
||||||
return sr;
|
return sr;
|
||||||
});
|
});
|
||||||
const time = parseFloat(junit.testsuites.$.time) * 1000;
|
const time = ((_a = junit.testsuites.$) === null || _a === void 0 ? void 0 : _a.time) === undefined
|
||||||
|
? undefined
|
||||||
|
: parseFloat(junit.testsuites.$.time) * 1000;
|
||||||
return new test_results_1.TestRunResult(path, suites, time);
|
return new test_results_1.TestRunResult(path, suites, time);
|
||||||
}
|
}
|
||||||
getGroups(suite) {
|
getGroups(suite) {
|
||||||
|
|
|
||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue