class Coverband::Reporters::HTMLReport

Attributes

base_path[RW]
filename[RW]
filtered_report_files[RW]
notice[RW]
open_report[RW]

Public Class Methods

new(store, options = {}) click to toggle source
# File lib/coverband/reporters/html_report.rb, line 9
def initialize(store, options = {})
  coverband_reports = Coverband::Reporters::Base.report(store, options)
  self.open_report = options.fetch(:open_report) { true }
  # TODO: refactor notice out to top level of web only
  self.notice = options.fetch(:notice) { nil }
  self.base_path = options.fetch(:base_path) { "./" }
  self.filename = options.fetch(:filename) { nil }

  self.filtered_report_files = self.class.fix_reports(coverband_reports)
end

Public Instance Methods

file_details() click to toggle source
# File lib/coverband/reporters/html_report.rb, line 20
def file_details
  Coverband::Utils::HTMLFormatter.new(filtered_report_files,
    base_path: base_path,
    notice: notice).format_source_file!(filename)
end
report() click to toggle source
# File lib/coverband/reporters/html_report.rb, line 26
def report
  report_dynamic_html
end
report_data() click to toggle source
# File lib/coverband/reporters/html_report.rb, line 30
def report_data
  report_dynamic_data
end

Private Instance Methods

report_dynamic_data() click to toggle source
# File lib/coverband/reporters/html_report.rb, line 42
def report_dynamic_data
  Coverband::Utils::HTMLFormatter.new(filtered_report_files,
    base_path: base_path,
    notice: notice).format_dynamic_data!
end
report_dynamic_html() click to toggle source
# File lib/coverband/reporters/html_report.rb, line 36
def report_dynamic_html
  Coverband::Utils::HTMLFormatter.new(filtered_report_files,
    base_path: base_path,
    notice: notice).format_dynamic_html!
end