add simplecov (#862)

100% test coverage is not a goal in and of itself.
This commit is contained in:
Gabriel Baldão 2020-08-19 20:24:04 -03:00 committed by GitHub
parent 96dd6407b5
commit 36677b1d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ public/assets
public/avatars
public/sitemap*
node_modules/
coverage/
yarn-error.log
yarn.lock
.byebug*

View File

@ -57,4 +57,5 @@ group :test, :development do
gem "rb-readline"
gem "vcr"
gem "webmock" # used to support vcr
gem 'simplecov', require: false
end

View File

@ -88,6 +88,7 @@ GEM
crass (1.0.6)
database_cleaner (1.8.5)
diff-lcs (1.4.4)
docile (1.3.2)
erubi (1.9.0)
exception_notification (4.4.3)
actionmailer (>= 4.0, < 7)
@ -235,6 +236,10 @@ GEM
scenic-mysql_adapter (1.0.1)
mysql2
scenic (>= 1.4.0)
simplecov (0.18.5)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
sitemap_generator (6.1.2)
builder (~> 3.0)
sprockets (3.7.2)
@ -308,6 +313,7 @@ DEPENDENCIES
ruumba
scenic
scenic-mysql_adapter
simplecov
sitemap_generator
sprockets-rails (= 2.3.3)
svg-graph

View File

@ -2,7 +2,9 @@
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'simplecov'
SimpleCov.start 'rails'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].sort.each {|f| require f }