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
commit a1ac327414
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) {