failed tests only show with failed option on

This commit is contained in:
Connor 2024-10-15 12:55:56 -05:00
parent b9ac788b26
commit 9b27ff7260
No known key found for this signature in database
GPG key ID: 455C6C81CB2BD091
3 changed files with 3 additions and 38 deletions

View file

@ -233,6 +233,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
}
if (options.listTests === 'non-skipped' && tc.result === 'skipped') {
continue
}