mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-18 23:17:09 +01:00
add link
This commit is contained in:
parent
95058abb17
commit
5c90b26631
18 changed files with 37 additions and 18 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -1845,7 +1845,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 `[](#test-report)`;
|
||||
}
|
||||
function getTestRunsReport(testRuns, options) {
|
||||
const sections = [];
|
||||
|
|
@ -1854,6 +1854,7 @@ function getTestRunsReport(testRuns, options) {
|
|||
sections.push(`<details><summary>Expand for details</summary>`);
|
||||
sections.push(` `);
|
||||
}
|
||||
sections.push('# <a name="test-report"></a> Tests report');
|
||||
if (testRuns.length > 0 || options.onlySummary) {
|
||||
const tableData = testRuns
|
||||
.filter(tr => tr.passed > 0 || tr.failed > 0 || tr.skipped > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue