List only failed tests

Fixes issue #142
This commit is contained in:
Siegfried Pammer 2022-03-06 19:00:25 +01:00 committed by Jozef Izso
parent a6b3e93884
commit 2312e637f3
Failed to extract signature
4 changed files with 187 additions and 1 deletions

View file

@ -263,6 +263,9 @@ function getTestsReport(ts: TestSuiteResult, runIndex: number, suiteIndex: numbe
}
const space = grp.name ? ' ' : ''
for (const tc of grp.tests) {
if (options.listTests === 'failed' && tc.result !== 'failed') {
continue
}
const result = getResultIcon(tc.result)
sections.push(`${space}${result} ${tc.name}`)
if (tc.error) {