Sha256: 5c6e9c54a6ac034966d67a4a36fd295b34eafe0a67c1a888d9911c57d22f5ee1

Contents?: true

Size: 496 Bytes

Versions: 71

Compression:

Stored size: 496 Bytes

Contents

#
# A ridiculously simple formatter for SimpleCov results.
#
class SimpleCov::Formatter::SimpleFormatter
  # Takes a SimpleCov::Result and generates a string out of it
  def format(result)
    output = ""
    result.groups.each do |name, files|
      output << "Group: #{name}\n"
      output << "="*40
      output << "\n"
      files.each do |file|
        output << "#{file.filename} (coverage: #{file.covered_percent.round(2)}%)\n"
      end
      output << "\n"
    end
    output
  end
end

Version data entries

71 entries across 53 versions & 7 rubygems

Version Path
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/lib/simplecov/formatter/simple_formatter.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/lib/simplecov/formatter/simple_formatter.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/lib/simplecov/formatter/simple_formatter.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/lib/simplecov/formatter/simple_formatter.rb
simplecov-0.8.2 lib/simplecov/formatter/simple_formatter.rb
simplecov-0.8.1 lib/simplecov/formatter/simple_formatter.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
candlepin-api-0.4.0 bundle/ruby/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
simplecov-0.8.0.pre2 lib/simplecov/formatter/simple_formatter.rb
challah-1.0.0 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
challah-1.0.0.beta3 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
challah-1.0.0.beta2 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
challah-1.0.0.beta vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
simplecov-0.8.0.pre lib/simplecov/formatter/simple_formatter.rb
challah-0.9.1.beta.3 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
devise_sociable-0.1.0 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
challah-0.9.1.beta vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb
challah-0.9.0 vendor/bundle/gems/simplecov-0.7.1/lib/simplecov/formatter/simple_formatter.rb