Class: SimpleCov::Formatter::HTMLFormatter

### Home Classes Methods

### In Files

- lib/simplecov-html.rb
- lib/simplecov-html/version.rb

### Parent

Object

### Namespace

- MODULE SimpleCov::Formatter::HTMLFormatter::VERSION

### Methods

- #format
- #output_message

### Class/Module Index

Quicksearch

- SimpleCov
- SimpleCov::Formatter
- SimpleCov::Formatter::HTMLFormatter
- SimpleCov::Formatter::HTMLFormatter::VERSION

No matching classes.

# SimpleCov::Formatter::HTMLFormatter

### Constants

VERSION

### Public Instance Methods

format(result) click to toggle source

    # File lib/simplecov-html.rb, line 17
    def format(result)
      Dir[File.join(File.dirname(__FILE__), "../public/*")].each do |path|
        FileUtils.cp_r(path, asset_output_path)
      end

      File.open(File.join(output_path, "index.html"), "wb") do |file|
        file.puts template("layout").result(binding)
      end
      puts output_message(result)
    end

output_message(result) click to toggle source

    # File lib/simplecov-html.rb, line 28
    def output_message(result)
      "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.