Sha256: 5cafa16232e94d951b35f830b2647e41dcb9475ef3d5c2fbdecc5d997091d032
Contents?: true
Size: 861 Bytes
Versions: 17
Compression:
Stored size: 861 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. # This module is responsible for intercepting output made through various stdlib # calls (i.e. puts, print, etc.) and printing summary information (e.g. a list # of failing tests) at the end of the process. # module Multiverse module OutputCollector include Color extend Color def self.buffers @buffer ||= [] end def self.failing_output @failing ||= [] end def self.report puts puts if failing_output.empty? puts green("There were no test failures") else puts red("There were failures in #{failing_output.size} test suites") puts "Here is their output" puts *failing_output end end end end
Version data entries
17 entries across 17 versions & 1 rubygems