From 06ae02969cc68deb1df74a87a85114aa9822c872 Mon Sep 17 00:00:00 2001 From: Jozef Izso Date: Tue, 25 Jun 2024 14:45:12 +0200 Subject: [PATCH] Rebuild release `index.js` file --- dist/index.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ff99141e..d103be32 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1178,7 +1178,7 @@ class JavaJunitParser { return 'success'; } getTestCaseError(tc) { - var _a; + var _a, _b; if (!this.options.parseErrors) { return undefined; } @@ -1198,11 +1198,18 @@ class JavaJunitParser { line = src.line; } } + let message; + if (typeof failure === 'object') { + message = failure.$.message; + if ((_b = failure.$) === null || _b === void 0 ? void 0 : _b.type) { + message = failure.$.type + ': ' + message; + } + } return { path: filePath, line, details, - message: typeof failure === 'object' ? failure.message : undefined + message }; } exceptionThrowSource(stackTrace) {