From 04c87e3812fdbbb1e5d18aff486fa5f86f00c52d Mon Sep 17 00:00:00 2001 From: JenDiamond Date: Fri, 26 Oct 2018 12:24:54 -0700 Subject: [PATCH] Add the simplecove gem (#302) --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 7 +++++++ spec/spec_helper.rb | 4 ++++ 4 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index e04dd06d..9efc1813 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ .env.development .env.production .env.test +coverage diff --git a/Gemfile b/Gemfile index 7211ba14..c5210248 100644 --- a/Gemfile +++ b/Gemfile @@ -77,5 +77,6 @@ group :development, :test do gem 'rspec-rails' gem 'rubocop-rspec' gem 'selenium-webdriver' + gem 'simplecov', '~> 0.16.1' gem 'solr_wrapper', '>= 0.3' end diff --git a/Gemfile.lock b/Gemfile.lock index a92790df..858f6614 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -198,6 +198,7 @@ GEM devise-guests (0.6.1) devise diff-lcs (1.3) + docile (1.3.1) dotenv (2.2.2) dotenv-rails (2.2.2) dotenv (= 2.2.2) @@ -736,6 +737,11 @@ GEM simple_form (3.5.0) actionpack (> 4, < 5.2) activemodel (> 4, < 5.2) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) slop (4.6.2) solr_wrapper (2.0.0) faraday @@ -858,6 +864,7 @@ DEPENDENCIES selenium-webdriver sidekiq (~> 5.1.3) sidekiq-failures + simplecov (~> 0.16.1) solr_wrapper (>= 0.3) spring spring-watcher-listen (~> 2.0.0) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2d65bc17..2501077a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,6 +14,10 @@ # it. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration + +require 'simplecov' +SimpleCov.start + RSpec.configure do |config| # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest