Parent

Methods

Class/Module Index [+]

Quicksearch

SimpleCov::Formatter::HTMLFormatter

Constants

VERSION

Public Instance Methods

format(result) click to toggle source
# File lib/simplecov-html.rb, line 13
def format(result)
  Dir[File.join(File.dirname(__FILE__), '../assets/*')].each do |path|
    FileUtils.cp_r(path, asset_output_path)
  end
  
  File.open(File.join(output_path, "index.html"), "w+") do |file|
    file.puts template('layout').result(binding)
  end
  puts "Coverage report generated for #{result.command_name} to #{output_path}. #{result.covered_lines} / #{result.total_lines} LOC (#{result.covered_percent.round(2)}%) covered."
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.