mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-19 07:27:09 +01:00
Merge 0dee8ba699 into c883ae9738
This commit is contained in:
commit
4dec797f6d
18 changed files with 37 additions and 18 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -2023,7 +2023,7 @@ function getBadge(passed, failed, skipped, options) {
|
|||
}
|
||||
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, options) {
|
||||
const sections = [];
|
||||
|
|
@ -2032,6 +2032,7 @@ function getTestRunsReport(testRuns, options) {
|
|||
sections.push(`<details><summary>Expand for details</summary>`);
|
||||
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