Merge pull request #606 from dorny/bugfix/142-list_failed_tests_only

This commit is contained in:
Jozef Izso
2025-06-13 13:07:08 +02:00
committed by GitHub
5 changed files with 190 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) {