Class: JCov::Reporter::HTMLReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/jcov/reporter/html_reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(coverage_runner) ⇒ HTMLReporter

Returns a new instance of HTMLReporter.



10
11
12
13
14
15
# File 'lib/jcov/reporter/html_reporter.rb', line 10

def initialize(coverage_runner)
  @coverage_runner = coverage_runner

  @report_index_template = File.read File.expand_path('../report.html.erb', __FILE__)
  @report_file_template  = File.read File.expand_path('../file.html.erb', __FILE__)
end

Instance Method Details

#reportObject



17
18
19
20
21
22
# File 'lib/jcov/reporter/html_reporter.rb', line 17

def report
  make_output_dir
  render_index
  render_files
  copy_css
end