SimpleCov is a code coverage analysis tool for Ruby.
Used 19 times
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