Sha256: d90c8809af10c44900ec8dc3824e21c2cb14446013e398f09127b3b088fd1f2e

Contents?: true

Size: 662 Bytes

Versions: 15

Compression:

Stored size: 662 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|
          # TODO: In Coverband 5 deprecate none hash format
          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

15 entries across 15 versions & 1 rubygems

Version Path
coverband-4.2.7 lib/coverband/reporters/console_report.rb
coverband-4.2.7.rc.1 lib/coverband/reporters/console_report.rb
coverband-4.2.6 lib/coverband/reporters/console_report.rb
coverband-4.2.5 lib/coverband/reporters/console_report.rb
coverband-4.2.5.rc.2 lib/coverband/reporters/console_report.rb
coverband-4.2.5.rc.1 lib/coverband/reporters/console_report.rb
coverband-4.2.4 lib/coverband/reporters/console_report.rb
coverband-4.2.4.rc.3 lib/coverband/reporters/console_report.rb
coverband-4.2.4.rc.2 lib/coverband/reporters/console_report.rb
coverband-4.2.4.rc.1 lib/coverband/reporters/console_report.rb
coverband-4.2.3 lib/coverband/reporters/console_report.rb
coverband-4.2.3.rc.2 lib/coverband/reporters/console_report.rb
coverband-4.2.3.rc.1 lib/coverband/reporters/console_report.rb
coverband-4.2.2 lib/coverband/reporters/console_report.rb
coverband-4.2.2.rc.1 lib/coverband/reporters/console_report.rb