mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Add unit tests to better test changes to output in the future
This commit is contained in:
parent
e94b0959b2
commit
b96bed2d8a
9 changed files with 3420 additions and 7 deletions
|
|
@ -190,12 +190,7 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
|
|||
const tsNameLink = skipLink ? tsName : link(tsName, tsAddr)
|
||||
const passed = s.passed > 0 ? `${s.passed}${Icon.success}` : ''
|
||||
const failed = s.failed > 0 ? `${s.failed}${Icon.fail}` : ''
|
||||
let skipped
|
||||
if (options.listTests === 'non-skipped') {
|
||||
return [tsNameLink, passed, failed, '', tsTime]
|
||||
} else {
|
||||
skipped = s.skipped > 0 ? `${s.skipped}${Icon.skip}` : ''
|
||||
}
|
||||
const skipped = s.skipped > 0 ? `${s.skipped}${Icon.skip}` : ''
|
||||
return [tsNameLink, passed, failed, skipped, tsTime]
|
||||
})
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue