Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simplecov-summary

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simplecov-summary

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Simplecov::Summary

SimpleCov formatter that prints nice colored summary for your coverage straight into your console.

endorse

Installation

Add this line to your application's Gemfile:

gem 'simplecov-summary'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simplecov-summary

Example

Below you can find the example for a typical Rails RSpec configuration. The following setup will silently generate HTML output and show you colored summary on each run.

  require 'simplecov'

  SimpleCov.start do
    add_filter '/spec/'
    add_filter '/config/'
    add_filter '/db/'
    add_filter '/vendor/'

    add_group 'Controllers', 'app/controllers'
    add_group 'Models', 'app/models'
    add_group 'Decorators', 'app/decorators'
    add_group 'Helpers', 'app/helpers'
    add_group 'Libraries', 'lib'
  end

  # Put this in for RSpec, Minitest will plug in automatically
  RSpec.configure do |config|
    config.after(:suite) do
      if SimpleCov.running
        silence_stream(STDOUT) do
          SimpleCov::Formatter::HTMLFormatter.new.format(SimpleCov.result)
        end

        SimpleCov::Formatter::SummaryFormatter.new.format(SimpleCov.result)
      end
    end
  end

License

It is free software, and may be redistributed under the terms of MIT license.

Bitdeli Badge

FAQs

Package last updated on 09 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc