diff --git a/.gitignore b/.gitignore index 2441491e..b0a219a8 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,5 @@ REVISION /yarn-error.log yarn-debug.log* .yarn-integrity + +coverage/ diff --git a/Gemfile b/Gemfile index 0ed38a77..5331c296 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,8 @@ group :development, :test do gem 'listen' end +gem 'simplecov', require: false, group: :test + group :production do gem 'mysql2' end diff --git a/Gemfile.lock b/Gemfile.lock index c2181a59..f52b1bc0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -133,6 +133,7 @@ GEM warden (~> 1.2.3) devise-i18n (1.12.1) devise (>= 4.9.0) + docile (1.4.1) drb (2.2.1) erubi (1.13.0) execjs (2.9.1) @@ -279,6 +280,12 @@ GEM rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) semantic_range (3.0.0) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) @@ -345,6 +352,7 @@ DEPENDENCIES rubyzip sass-rails selenium-webdriver + simplecov sqlite3 uglifier validate_url diff --git a/test/test_helper.rb b/test/test_helper.rb index 404da113..784c2069 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,6 @@ +require 'simplecov' +SimpleCov.start + ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help'