mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
Tweak report
This commit is contained in:
parent
5bbbf16193
commit
e1bf15b60e
2 changed files with 12 additions and 12 deletions
12
dist/index.js
generated
vendored
12
dist/index.js
generated
vendored
|
|
@ -1632,9 +1632,9 @@ function getTestRunsReport(testRuns, options) {
|
||||||
const addr = options.baseUrl + makeRunSlug(runIndex).link;
|
const addr = options.baseUrl + makeRunSlug(runIndex).link;
|
||||||
const nameLink = (0, markdown_utils_1.link)(name, addr);
|
const nameLink = (0, markdown_utils_1.link)(name, addr);
|
||||||
const statusIcon = tr.failed > 0 ? markdown_utils_1.Icon.fail : tr.passed > 0 ? markdown_utils_1.Icon.success : markdown_utils_1.Icon.skip;
|
const statusIcon = tr.failed > 0 ? markdown_utils_1.Icon.fail : tr.passed > 0 ? markdown_utils_1.Icon.success : markdown_utils_1.Icon.skip;
|
||||||
const passed = tr.passed;
|
const passed = tr.passed === 0 ? '' : tr.passed;
|
||||||
const failed = tr.failed;
|
const failed = tr.failed === 0 ? '' : tr.failed;
|
||||||
const skipped = tr.skipped;
|
const skipped = tr.skipped === 0 ? '' : tr.skipped;
|
||||||
return [statusIcon + ' ' + nameLink, passed, failed, skipped, time];
|
return [statusIcon + ' ' + nameLink, passed, failed, skipped, time];
|
||||||
});
|
});
|
||||||
const resultsTable = (0, markdown_utils_1.table)(['Report', 'Passed', 'Failed', 'Skipped', 'Time'], [markdown_utils_1.Align.Left, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right], ...tableData);
|
const resultsTable = (0, markdown_utils_1.table)(['Report', 'Passed', 'Failed', 'Skipped', 'Time'], [markdown_utils_1.Align.Left, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right, markdown_utils_1.Align.Right], ...tableData);
|
||||||
|
|
@ -1666,9 +1666,9 @@ function getSuitesReport(tr, runIndex, options) {
|
||||||
const tsAddr = options.baseUrl + makeSuiteSlug(runIndex, suiteIndex).link;
|
const tsAddr = options.baseUrl + makeSuiteSlug(runIndex, suiteIndex).link;
|
||||||
const tsNameLink = skipLink ? tsName : (0, markdown_utils_1.link)(tsName, tsAddr);
|
const tsNameLink = skipLink ? tsName : (0, markdown_utils_1.link)(tsName, tsAddr);
|
||||||
const statusIcon = s.failed > 0 ? markdown_utils_1.Icon.fail : s.passed > 0 ? markdown_utils_1.Icon.success : markdown_utils_1.Icon.skip;
|
const statusIcon = s.failed > 0 ? markdown_utils_1.Icon.fail : s.passed > 0 ? markdown_utils_1.Icon.success : markdown_utils_1.Icon.skip;
|
||||||
const passed = s.passed;
|
const passed = s.passed === 0 ? '' : s.passed;
|
||||||
const failed = s.failed;
|
const failed = s.failed === 0 ? '' : s.failed;
|
||||||
const skipped = s.skipped;
|
const skipped = s.skipped === 0 ? '' : s.skipped;
|
||||||
return [statusIcon + ' ' + tsNameLink, passed, failed, skipped, tsTime];
|
return [statusIcon + ' ' + tsNameLink, passed, failed, skipped, tsTime];
|
||||||
}));
|
}));
|
||||||
sections.push(suitesTable);
|
sections.push(suitesTable);
|
||||||
|
|
|
||||||
|
|
@ -142,9 +142,9 @@ function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): s
|
||||||
const addr = options.baseUrl + makeRunSlug(runIndex).link
|
const addr = options.baseUrl + makeRunSlug(runIndex).link
|
||||||
const nameLink = link(name, addr)
|
const nameLink = link(name, addr)
|
||||||
const statusIcon = tr.failed > 0 ? Icon.fail : tr.passed > 0 ? Icon.success : Icon.skip
|
const statusIcon = tr.failed > 0 ? Icon.fail : tr.passed > 0 ? Icon.success : Icon.skip
|
||||||
const passed = tr.passed
|
const passed = tr.passed === 0 ? '' : tr.passed
|
||||||
const failed = tr.failed
|
const failed = tr.failed === 0 ? '' : tr.failed
|
||||||
const skipped = tr.skipped
|
const skipped = tr.skipped === 0 ? '' : tr.skipped
|
||||||
return [statusIcon + ' ' + nameLink, passed, failed, skipped, time]
|
return [statusIcon + ' ' + nameLink, passed, failed, skipped, time]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -190,9 +190,9 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
|
||||||
const tsAddr = options.baseUrl + makeSuiteSlug(runIndex, suiteIndex).link
|
const tsAddr = options.baseUrl + makeSuiteSlug(runIndex, suiteIndex).link
|
||||||
const tsNameLink = skipLink ? tsName : link(tsName, tsAddr)
|
const tsNameLink = skipLink ? tsName : link(tsName, tsAddr)
|
||||||
const statusIcon = s.failed > 0 ? Icon.fail : s.passed > 0 ? Icon.success : Icon.skip
|
const statusIcon = s.failed > 0 ? Icon.fail : s.passed > 0 ? Icon.success : Icon.skip
|
||||||
const passed = s.passed
|
const passed = s.passed === 0 ? '' : s.passed
|
||||||
const failed = s.failed
|
const failed = s.failed === 0 ? '' : s.failed
|
||||||
const skipped = s.skipped
|
const skipped = s.skipped === 0 ? '' : s.skipped
|
||||||
return [statusIcon + ' ' + tsNameLink, passed, failed, skipped, tsTime]
|
return [statusIcon + ' ' + tsNameLink, passed, failed, skipped, tsTime]
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue