From fb907d9395b212e7e069c377224d9632e5248e2a Mon Sep 17 00:00:00 2001 From: GabrielRMuller Date: Sun, 9 Jun 2019 18:50:14 -0300 Subject: [PATCH] adds the SimpleCov gem to the project (#1044) --- .gitignore | 3 +++ Gemfile | 1 + Gemfile.lock | 8 ++++++++ spec/spec_helper.rb | 3 +++ 4 files changed, 15 insertions(+) diff --git a/.gitignore b/.gitignore index 16d37540c3..7fdac09af6 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,6 @@ yarn-debug.log* # Ignore master key for decrypting credentials and more. /config/master.key + +# Ignore SimpleCov assets +coverage diff --git a/Gemfile b/Gemfile index d08f1c28d3..0b2e7e5ff8 100644 --- a/Gemfile +++ b/Gemfile @@ -87,6 +87,7 @@ group :test do gem "launchy" gem 'webdrivers', '~> 3.0' gem "rails-controller-testing" + gem 'simplecov' gem "webmock", "~> 3.5" end diff --git a/Gemfile.lock b/Gemfile.lock index 18356502d9..82a7cc5c8a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -143,6 +143,7 @@ GEM actionmailer (>= 4.1.0) devise (>= 4.0.0) diff-lcs (1.3) + docile (1.3.1) dotenv (2.5.0) dotenv-rails (2.5.0) dotenv (= 2.5.0) @@ -211,6 +212,7 @@ GEM thor (>= 0.14, < 2.0) jquery-ui-rails (6.0.1) railties (>= 3.2.16) + json (2.2.0) launchy (2.4.3) addressable (~> 2.3) libv8 (3.16.14.19) @@ -398,6 +400,11 @@ GEM simple_form (4.1.0) actionpack (>= 5.0) activemodel (>= 5.0) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) skylight (3.1.2) skylight-core (= 3.1.2) skylight-core (3.1.2) @@ -528,6 +535,7 @@ DEPENDENCIES sass-rails sidekiq simple_form + simplecov skylight spring spring-watcher-listen diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 352c3db1bd..d1c3439e14 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -16,6 +16,9 @@ # users commonly want. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +require 'simplecov' +SimpleCov.start 'rails' + RSpec.configure do |config| # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest