mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 15:07:10 +01:00
Avoid listing test groups
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
This commit is contained in:
parent
18430db883
commit
6adeee0597
1 changed files with 1 additions and 5 deletions
|
|
@ -258,16 +258,12 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
|
||||||
|
|
||||||
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 ?? getFirstNonEmptyLine(tc.error.details)?.trim())
|
const lines = (tc.error.message ?? getFirstNonEmptyLine(tc.error.details)?.trim())
|
||||||
?.split(/\r?\n/g)
|
?.split(/\r?\n/g)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue