mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 23:07:08 +01:00
(tmp) Add debugging traces
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
This commit is contained in:
parent
6adeee0597
commit
11c8e6513a
2 changed files with 19 additions and 25 deletions
37
dist/index.js
generated
vendored
37
dist/index.js
generated
vendored
|
|
@ -2110,21 +2110,16 @@ function getTestsReport(ts, runIndex, suiteIndex, options) {
|
||||||
sections.push(`### ${icon}\xa0${tsNameLink}`);
|
sections.push(`### ${icon}\xa0${tsNameLink}`);
|
||||||
sections.push('```');
|
sections.push('```');
|
||||||
for (const grp of groups) {
|
for (const grp of groups) {
|
||||||
if (grp.name) {
|
|
||||||
sections.push(grp.name);
|
|
||||||
}
|
|
||||||
const space = grp.name ? ' ' : '';
|
|
||||||
for (const tc of grp.tests) {
|
for (const tc of grp.tests) {
|
||||||
if (options.listTests === 'failed' && tc.result !== 'failed') {
|
if (options.listTests === 'failed' && tc.result !== 'failed') {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const result = getResultIcon(tc.result);
|
const result = getResultIcon(tc.result);
|
||||||
sections.push(`${space}${result} ${tc.name}`);
|
sections.push(`${result} ${tc.name}`);
|
||||||
if (tc.error) {
|
if (tc.error) {
|
||||||
const lines = (tc.error.message ?? (0, parse_utils_1.getFirstNonEmptyLine)(tc.error.details)?.trim())
|
const message = tc.error.message ?? (0, parse_utils_1.getFirstNonEmptyLine)(tc.error.details)?.trim();
|
||||||
?.split(/\r?\n/g)
|
if (message) {
|
||||||
.map(l => '\t' + l);
|
const lines = message.split(/\r?\n/g).map(l => '\t' + l);
|
||||||
if (lines) {
|
|
||||||
sections.push(...lines);
|
sections.push(...lines);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3264,8 +3259,8 @@ class OidcClient {
|
||||||
const res = yield httpclient
|
const res = yield httpclient
|
||||||
.getJson(id_token_url)
|
.getJson(id_token_url)
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
throw new Error(`Failed to get ID Token. \n
|
throw new Error(`Failed to get ID Token. \n
|
||||||
Error Code : ${error.statusCode}\n
|
Error Code : ${error.statusCode}\n
|
||||||
Error Message: ${error.message}`);
|
Error Message: ${error.message}`);
|
||||||
});
|
});
|
||||||
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
|
||||||
|
|
@ -21781,7 +21776,7 @@ const understoodStatuses = new Set([
|
||||||
const errorStatusCodes = new Set([
|
const errorStatusCodes = new Set([
|
||||||
500,
|
500,
|
||||||
502,
|
502,
|
||||||
503,
|
503,
|
||||||
504,
|
504,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -24234,7 +24229,7 @@ exports.parse = function (s) {
|
||||||
if(/^:base64:/.test(value))
|
if(/^:base64:/.test(value))
|
||||||
return Buffer.from(value.substring(8), 'base64')
|
return Buffer.from(value.substring(8), 'base64')
|
||||||
else
|
else
|
||||||
return /^:/.test(value) ? value.substring(1) : value
|
return /^:/.test(value) ? value.substring(1) : value
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
})
|
})
|
||||||
|
|
@ -61556,7 +61551,7 @@ module.exports = parseParams
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/******/ // The module cache
|
/******/ // The module cache
|
||||||
/******/ var __webpack_module_cache__ = {};
|
/******/ var __webpack_module_cache__ = {};
|
||||||
/******/
|
/******/
|
||||||
/******/ // The require function
|
/******/ // The require function
|
||||||
/******/ function __nccwpck_require__(moduleId) {
|
/******/ function __nccwpck_require__(moduleId) {
|
||||||
/******/ // Check if module is in cache
|
/******/ // Check if module is in cache
|
||||||
|
|
@ -61570,7 +61565,7 @@ module.exports = parseParams
|
||||||
/******/ // no module.loaded needed
|
/******/ // no module.loaded needed
|
||||||
/******/ exports: {}
|
/******/ exports: {}
|
||||||
/******/ };
|
/******/ };
|
||||||
/******/
|
/******/
|
||||||
/******/ // Execute the module function
|
/******/ // Execute the module function
|
||||||
/******/ var threw = true;
|
/******/ var threw = true;
|
||||||
/******/ try {
|
/******/ try {
|
||||||
|
|
@ -61579,23 +61574,23 @@ module.exports = parseParams
|
||||||
/******/ } finally {
|
/******/ } finally {
|
||||||
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/
|
/******/
|
||||||
/******/ // Return the exports of the module
|
/******/ // Return the exports of the module
|
||||||
/******/ return module.exports;
|
/******/ return module.exports;
|
||||||
/******/ }
|
/******/ }
|
||||||
/******/
|
/******/
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/******/ /* webpack/runtime/compat */
|
/******/ /* webpack/runtime/compat */
|
||||||
/******/
|
/******/
|
||||||
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
|
||||||
/******/
|
/******/
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/******/
|
/******/
|
||||||
/******/ // startup
|
/******/ // startup
|
||||||
/******/ // Load entry module and return exports
|
/******/ // Load entry module and return exports
|
||||||
/******/ // This entry module is referenced by other modules so it can't be inlined
|
/******/ // This entry module is referenced by other modules so it can't be inlined
|
||||||
/******/ var __webpack_exports__ = __nccwpck_require__(5915);
|
/******/ var __webpack_exports__ = __nccwpck_require__(5915);
|
||||||
/******/ module.exports = __webpack_exports__;
|
/******/ module.exports = __webpack_exports__;
|
||||||
/******/
|
/******/
|
||||||
/******/ })()
|
/******/ })()
|
||||||
;
|
;
|
||||||
|
|
@ -265,10 +265,9 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
|
||||||
const result = getResultIcon(tc.result)
|
const result = getResultIcon(tc.result)
|
||||||
sections.push(`${result} ${tc.name}`)
|
sections.push(`${result} ${tc.name}`)
|
||||||
if (tc.error) {
|
if (tc.error) {
|
||||||
const lines = (tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim())
|
const message = tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim();
|
||||||
?.split(/\r?\n/g)
|
if (message) {
|
||||||
.map(l => '\t' + l)
|
const lines = message.split(/\r?\n/g).map(l => '\t' + l);
|
||||||
if (lines) {
|
|
||||||
sections.push(...lines)
|
sections.push(...lines)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue