Force generating summary if there is single results file and onlySummary is enabled

This commit is contained in:
Michal Dorner 2021-06-22 21:28:22 +02:00
parent 17e793242c
commit 2ac8b4498f
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
6 changed files with 128 additions and 167 deletions

View file

@ -134,7 +134,7 @@ function getBadge(passed: number, failed: number, skipped: number): string {
function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): string[] {
const sections: string[] = []
if (testRuns.length > 1) {
if (testRuns.length > 1 || options.onlySummary) {
const tableData = testRuns.map((tr, runIndex) => {
const time = formatTime(tr.time)
const name = tr.path