Sha256: 15985984a6f007139997d67032985f59b51d2d8c6b18a0182e895e6fcf903a3a
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
require 'gruff' module MetricFu class RcovGrapher attr_accessor :rcov_percent, :labels def initialize self.rcov_percent = [] self.labels = {} end def get_metrics(metrics, date) self.rcov_percent.push(metrics[:rcov][:global_percent_run]) self.labels.update( { self.labels.size => date }) end def graph! g = Gruff::Line.new(MetricFu.graph_size) g.title = "Rcov: code coverage" g.theme = MetricFu.graph_theme g.font = MetricFu.graph_font g.data('rcov', self.rcov_percent) g.labels = self.labels g.write(File.join(MetricFu.output_directory, 'rcov.png')) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
edouard-metric_fu-1.0.4.3 | lib/graphs/rcov_grapher.rb |