mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-02 11:25:21 -08:00
Force generating summary if there is single results file and onlySummary is enabled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user