Sha256: c2c132cde0e54424e4b39477d9f04802d05a6189a5cb95e6a3dcf724e996317e

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

MetricFu.reporting_require { 'graphs/grapher' }
module MetricFu
  class RcovGrapher < Grapher
    attr_accessor :rcov_percent, :labels

    def self.metric
      :rcov
    end

    def initialize
      super
      self.rcov_percent = []
      self.labels = {}
    end

    def get_metrics(metrics, date)
      if metrics && metrics[:rcov]
        self.rcov_percent.push(metrics[:rcov][:global_percent_run])
        self.labels.update( { self.labels.size => date })
      end
    end

    def title
      'Rcov: code coverage'
    end

    def data
      [
        ['rcov', @rcov_percent.join(',')]
      ]
    end

    def output_filename
      'rcov.js'
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
metric_fu-4.11.3 lib/metric_fu/metrics/rcov/grapher.rb
metric_fu-4.11.2 lib/metric_fu/metrics/rcov/grapher.rb
metric_fu-4.11.1 lib/metric_fu/metrics/rcov/grapher.rb
metric_fu-4.11.0 lib/metric_fu/metrics/rcov/grapher.rb
metric_fu-4.10.0 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.9.0 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.8.0 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.7.4 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.7.3 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.7.2 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.7.1 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.7.0 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.6.0 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.5.2 lib/metric_fu/metrics/rcov/rcov_grapher.rb
metric_fu-4.5.1 lib/metric_fu/metrics/rcov/rcov_grapher.rb