diff --git a/Gemfile b/Gemfile index 2f4bb81a2..361440368 100644 --- a/Gemfile +++ b/Gemfile @@ -64,6 +64,7 @@ group :test do gem 'capybara', '~> 3.13' gem 'selenium-webdriver', '~> 3.141' gem 'chromedriver-helper', '~> 2.1' + gem 'simplecov', '~> 0.16.1', require: false end group :production do diff --git a/Gemfile.lock b/Gemfile.lock index 6d0cfa9fe..20335b45e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -122,6 +122,7 @@ GEM responders warden (~> 1.2.3) diff-lcs (1.3) + docile (1.3.1) domain_name (0.5.20170223) unf (>= 0.0.5, < 1.0.0) dotenv (2.7.1) @@ -349,6 +350,11 @@ GEM simple_form (3.1.0) actionpack (~> 4.0) activemodel (~> 4.0) + simplecov (0.16.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) skylight (2.0.1) skylight-core (= 2.0.1) skylight-core (2.0.1) @@ -442,6 +448,7 @@ DEPENDENCIES sidekiq (= 5.1.3) sidekiq-cron (= 0.6.3) simple_form (>= 3.0.0) + simplecov (~> 0.16.1) skylight uglifier (= 2.7.2) unicorn diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 946559b7a..7a75c877f 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,6 @@ -# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'simplecov' +SimpleCov.start 'rails' + ENV["RAILS_ENV"] ||= 'test' ENV["ADMINS"] = "admin@timeoverflow.org"