mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Update bundle
This commit is contained in:
parent
7ab3cf6aaf
commit
e8917857c2
2 changed files with 6 additions and 3 deletions
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
|
|
@ -943,9 +943,10 @@ class GoJunitParser {
|
|||
return new test_results_1.TestRunResult(path, suites, time);
|
||||
}
|
||||
getGroups(suite) {
|
||||
var _a;
|
||||
const groups = [];
|
||||
const returnEmpytGroups = [];
|
||||
if (suite.testcase.length === 0)
|
||||
if (!((_a = suite.testcase) === null || _a === void 0 ? void 0 : _a.length))
|
||||
return returnEmpytGroups;
|
||||
for (const tc of suite.testcase) {
|
||||
let grp = groups.find(g => g.describe === tc.$.classname);
|
||||
|
|
@ -974,10 +975,12 @@ class GoJunitParser {
|
|||
return 'success';
|
||||
}
|
||||
getTestCaseError(tc) {
|
||||
var _a;
|
||||
if (!this.options.parseErrors || !tc.failure) {
|
||||
return undefined;
|
||||
}
|
||||
const details = tc.failure[0];
|
||||
const failure = (_a = tc.failure) === null || _a === void 0 ? void 0 : _a[0];
|
||||
const details = (typeof failure === 'object' ? failure._ : failure) || "";
|
||||
let path;
|
||||
let line;
|
||||
const src = (0, node_utils_1.getExceptionSource)(details, this.options.trackedFiles, file => this.getRelativePath(file));
|
||||
|
|
|
|||
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