File tree Expand file tree Collapse file tree
Sources/Testing/Events/Recorder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -307,8 +307,9 @@ extension Event.ConsoleOutputRecorder {
307307 @discardableResult public func record( _ event: borrowing Event , in context: borrowing Event . Context ) -> Bool {
308308 let messages = _humanReadableOutputRecorder. record ( event, in: context)
309309
310- // Print failure summary when run ends
311- if case . runEnded = event. kind {
310+ // Print failure summary when run ends, unless an environment variable is
311+ // set to explicitly disable it.
312+ if case . runEnded = event. kind, Environment . flag ( named: " SWT_FAILURE_SUMMARY_ENABLED " ) != false {
312313 if let summary = _humanReadableOutputRecorder. generateFailureSummary ( options: options) {
313314 // Add blank line before summary and after summary for visual separation
314315 write ( " \n \( summary) \n " )
You can’t perform that action at this time.
0 commit comments