SimpleCov

Public
SimpleCov is a code coverage analysis tool for Ruby.
Icons/chart bar
Used 19 times
Created by
E Emanuele Bonanno

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/zNPsKN"
Template Source

Review the code before running this template on your machine.

inject_into_file 'Gemfile', after: 'group :development, :test do' do
<<-RUBY
  gem "simplecov"
RUBY
end

after_bundle do
  file 'spec/support/simplecov.rb', <<~CODE
    require "simplecov"

    SimpleCov.start do
      enable_coverage :branch
      add_filter "/spec/"
    end
  CODE
end
Comments

Sign up or Login to leave a comment.