mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 23:17:09 +01:00
Merge 0dee8ba699 into c883ae9738
This commit is contained in:
commit
4dec797f6d
18 changed files with 37 additions and 18 deletions
|
|
@ -146,7 +146,7 @@ function getBadge(passed: number, failed: number, skipped: number, options: Repo
|
|||
}
|
||||
const hint = failed > 0 ? 'Tests failed' : 'Tests passed successfully'
|
||||
const uri = encodeURIComponent(`${options.badgeTitle}-${message}-${color}`)
|
||||
return ``
|
||||
return `[](#user-content-test-report)`
|
||||
}
|
||||
|
||||
function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): string[] {
|
||||
|
|
@ -157,6 +157,8 @@ function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): s
|
|||
sections.push(` `)
|
||||
}
|
||||
|
||||
sections.push('# <a name="user-content-test-report"></a> Tests report')
|
||||
|
||||
if (testRuns.length > 0 || options.onlySummary) {
|
||||
const tableData = testRuns
|
||||
.map((tr, originalIndex) => ({tr, originalIndex}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue