mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 23:17:09 +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
|
|
@ -265,10 +265,9 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
|
|||
const result = getResultIcon(tc.result)
|
||||
sections.push(`${result} ${tc.name}`)
|
||||
if (tc.error) {
|
||||
const lines = (tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim())
|
||||
?.split(/\r?\n/g)
|
||||
.map(l => '\t' + l)
|
||||
if (lines) {
|
||||
const message = tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim();
|
||||
if (message) {
|
||||
const lines = message.split(/\r?\n/g).map(l => '\t' + l);
|
||||
sections.push(...lines)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue