From 3bb0a3c60ae89156f8d0011862b72faf2584dea7 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 3 Mar 2023 21:33:06 -0600 Subject: AƱade gema simplecov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ Gemfile | 1 + Gemfile.lock | 8 ++++++++ spec/rails_helper.rb | 2 ++ 4 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index a6b54a3..1435e74 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,6 @@ # Ignore database configuration. /config/database.yml .env + +# Ignore spec's coverage +/coverage/* diff --git a/Gemfile b/Gemfile index 932eabc..da61184 100644 --- a/Gemfile +++ b/Gemfile @@ -57,6 +57,7 @@ group :development, :test do gem 'faker' gem 'rspec-rails', '~> 6.0.0' gem 'shoulda-matchers', '~> 5.0' + gem 'simplecov' end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index cad9d54..51ebfcd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,6 +75,7 @@ GEM date (3.3.3) debug (1.7.1) diff-lcs (1.5.0) + docile (1.4.0) dotenv (2.8.1) dotenv-rails (2.8.1) dotenv (= 2.8.1) @@ -171,6 +172,12 @@ GEM rspec-support (3.12.0) shoulda-matchers (5.3.0) activesupport (>= 5.2.0) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) thor (1.2.1) timeout (0.3.2) tzinfo (2.0.6) @@ -198,6 +205,7 @@ DEPENDENCIES rails (~> 7.0.4, >= 7.0.4.2) rspec-rails (~> 6.0.0) shoulda-matchers (~> 5.0) + simplecov tzinfo-data RUBY VERSION diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 9f8c999..a30ead5 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,3 +1,5 @@ +require 'simplecov' +SimpleCov.start # This file is copied to spec/ when you run 'rails generate rspec:install' require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' -- cgit v1.2.3