From 5c2b81c846433860d237768cdafc7889fc7c3723 Mon Sep 17 00:00:00 2001 From: rebuilt Date: Mon, 31 Jan 2022 16:04:43 +0100 Subject: [PATCH] Add simplecov gem --- .gitignore | 1 + Gemfile | 3 ++- Gemfile.lock | 8 ++++++++ spec/spec_helper.rb | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cd4f46b9..f1d9af04 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ config/local_env.yml /app/assets/builds/* !/app/assets/builds/.keep public/assets/ +coverage diff --git a/Gemfile b/Gemfile index a0484a9f..93bb8661 100644 --- a/Gemfile +++ b/Gemfile @@ -66,11 +66,11 @@ group :development do # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. gem 'listen', '~> 3.0.5' gem 'web-console' - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'bullet' gem 'nested_scaffold' gem 'rubocop', require: false gem 'seed_dump' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring gem 'spring' end @@ -81,6 +81,7 @@ group 'test' do gem 'launchy' gem 'rails-controller-testing' gem 'rspec-rails', '~> 4.1.2' + gem 'simplecov', require: false gem 'timecop' end diff --git a/Gemfile.lock b/Gemfile.lock index 8a5da6b3..0a7b5055 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -116,6 +116,7 @@ GEM warden (~> 1.2.3) diff-lcs (1.5.0) digest (3.1.0) + docile (1.4.0) erubi (1.10.0) execjs (2.8.1) factory_bot (6.2.0) @@ -274,6 +275,12 @@ GEM seed_dump (3.3.1) activerecord (>= 4) activesupport (>= 4) + simplecov (0.21.2) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.3) spring (4.0.0) sprockets (4.0.2) concurrent-ruby (~> 1.0) @@ -348,6 +355,7 @@ DEPENDENCIES rspec-rails (~> 4.1.2) rubocop seed_dump + simplecov spring sprockets-rails timecop diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index f5482967..d9a9c981 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@ +require 'simplecov' +SimpleCov.start + require 'capybara/rspec' require 'capybara/apparition' # This file was generated by the `rails generate rspec:install` command. Conventionally, all