Skip to content

Commit 83e2d4a

Browse files
koct9ionsi
authored andcommitted
add --github-output group for progress report content
Keep massage and spec nodes visible, fold everything else.
1 parent 1ec9114 commit 83e2d4a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reporters/default_reporter.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,10 @@ func (r *DefaultReporter) emitProgressReport(indent uint, emitGinkgoWriterOutput
514514
indent -= 1
515515
}
516516

517+
if r.conf.GithubOutput {
518+
r.emitBlock(r.fi(indent, "::group::Progress Report"))
519+
}
520+
517521
if emitGinkgoWriterOutput && report.CapturedGinkgoWriterOutput != "" {
518522
r.emit("\n")
519523
r.emitBlock(r.fi(indent, "{{gray}}Begin Captured GinkgoWriter Output >>{{/}}"))
@@ -560,6 +564,10 @@ func (r *DefaultReporter) emitProgressReport(indent uint, emitGinkgoWriterOutput
560564
r.emit(r.fi(indent, "{{gray}}{{bold}}{{underline}}Other Goroutines{{/}}\n"))
561565
r.emitGoroutines(indent, otherGoroutines...)
562566
}
567+
568+
if r.conf.GithubOutput {
569+
r.emitBlock(r.fi(indent, "::endgroup::"))
570+
}
563571
}
564572

565573
func (r *DefaultReporter) EmitReportEntry(entry types.ReportEntry) {

0 commit comments

Comments
 (0)