Skip to content

Commit b83f524

Browse files
woodieonsi
authored andcommitted
Fewer new methods.
1 parent 73c59df commit b83f524

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

reporters/default_reporter.go

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,8 @@ func (r *DefaultReporter) SuiteWillBegin(report types.Report) {
127127
}
128128

129129
func (r *DefaultReporter) SuiteDidEnd(report types.Report) {
130-
if r.conf.FdOutput {
131-
r.emitSuiteFooter(report)
132-
return
133-
}
134130
failures := report.SpecReports.WithState(types.SpecStateFailureStates)
135-
if len(failures) > 0 {
131+
if !r.conf.FdOutput && len(failures) > 0 {
136132
r.emitBlock("\n")
137133
if len(failures) > 1 {
138134
r.emitBlock(r.f("{{red}}{{bold}}Summarizing %d Failures:{{/}}", len(failures)))
@@ -155,10 +151,7 @@ func (r *DefaultReporter) SuiteDidEnd(report types.Report) {
155151
r.emitBlock(r.fi(1, highlightColor+"%s{{/}} %s", heading, locationBlock))
156152
}
157153
}
158-
r.emitSuiteFooter(report)
159-
}
160-
161-
func (r *DefaultReporter) emitSuiteFooter(report types.Report) {
154+
//summarize the suite
162155
if r.conf.Verbosity().Is(types.VerbosityLevelSuccinct) && report.SuiteSucceeded {
163156
r.emit(r.f(" {{green}}SUCCESS!{{/}} %s ", report.RunTime))
164157
return

0 commit comments

Comments
 (0)