Sha256: 83150b2da0a730ad9bb503e9381c88da55fd7cd6af11a4ab30f1d182ae0059d4

Contents?: true

Size: 602 Bytes

Versions: 16

Compression:

Stored size: 602 Bytes

Contents

# frozen_string_literal: true

module Coverband
  module Reporters
    ###
    # Console Report allows for simple reporting via the command line.
    ###
    class ConsoleReport < Base
      def self.report(store, options = {})
        scov_style_report = super(store, options)

        scov_style_report.each_pair do |file, usage|
          if usage.is_a?(Hash)
            Coverband.configuration.logger.info "#{file}: #{usage['data']}"
          else
            Coverband.configuration.logger.info "#{file}: #{usage}"
          end
        end
        scov_style_report
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
coverband-4.2.1 lib/coverband/reporters/console_report.rb
coverband-4.2.1.rc4 lib/coverband/reporters/console_report.rb
coverband-4.2.1.rc3 lib/coverband/reporters/console_report.rb
coverband-4.2.1.rc2 lib/coverband/reporters/console_report.rb
coverband-4.2.1.rc1 lib/coverband/reporters/console_report.rb
coverband-4.2.0 lib/coverband/reporters/console_report.rb
coverband-4.2.0.rc3 lib/coverband/reporters/console_report.rb
coverband-4.2.0.rc2 lib/coverband/reporters/console_report.rb
coverband-4.1.1 lib/coverband/reporters/console_report.rb
coverband-4.2.0.rc1 lib/coverband/reporters/console_report.rb
coverband-4.1.0 lib/coverband/reporters/console_report.rb
coverband-4.1.0.beta lib/coverband/reporters/console_report.rb
coverband-4.2.0.beta lib/coverband/reporters/console_report.rb
coverband-4.2.0.alpha lib/coverband/reporters/console_report.rb
coverband-4.1.0.alpha lib/coverband/reporters/console_report.rb
coverband-4.0.1 lib/coverband/reporters/console_report.rb