Class SimpleCov::Result
In: lib/simplecov/result.rb
Parent: Object

A simplecov code coverage result, initialized from the Hash Ruby 1.9‘s built-in coverage library generates (Coverage.result).

Methods

External Aliases

files -> source_files

Attributes

command_name  [W]  Explicitly set the command name that was used for this coverage result. Defaults to SimpleCov.command_name
created_at  [W]  Explicitly set the Time this result has been created
files  [R]  Returns all files that are applicable to this result (sans filters!) as instances of SimpleCov::SourceFile. Aliased as :source_files
original_result  [R]  Returns the original Coverage.result used for this instance of SimpleCov::Result

Public Class methods

Initialize a new SimpleCov::Result from given Coverage.result (a Hash of filenames each containing an array of coverage data)

Public Instance methods

The command name that launched this result. Retrieved from SimpleCov.command_name

Returns the count of lines that are covered

The overall percentual coverage for this result

Defines when this result has been created. Defaults to Time.now

Returns all filenames for source files contained in this result

Applies the configured SimpleCov.formatter on this result

Returns a Hash of groups for this result. Define groups using SimpleCov.add_group ‘Models’, ‘app/models‘

Returns the count of missed lines

Returns a hash representation of this Result that can be used for marshalling it into YAML

Returns a yaml dump of this result, which then can be reloaded using SimpleCov::Result.from_yaml

Total count of relevant lines (covered + missed)

[Validate]