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

Version Path
newrelic_rpm-3.6.5.130 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.4.122 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.4.113.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.3.111 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.3.106 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.3.105.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.3.104 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.3.103.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.2.96 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.2.90.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.1.88 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.1.87 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.1.86.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.1.85.beta test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.0.83 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.0.78 test/multiverse/lib/multiverse/output_collector.rb
newrelic_rpm-3.6.0.74.beta test/multiverse/lib/multiverse/output_collector.rb