diff --git a/Gemfile b/Gemfile index be0f9309f..7b292ddea 100644 --- a/Gemfile +++ b/Gemfile @@ -64,6 +64,7 @@ group :test do gem 'capybara', '~> 2.7' gem 'capybara-selenium', '~> 0.0.6' gem 'chromedriver-helper', '~> 1.0' + gem 'simplecov', '~> 0.16.1', require: false end group :production do diff --git a/Gemfile.lock b/Gemfile.lock index 8dcf90423..231ad6572 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -124,6 +124,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.5.0) @@ -350,6 +351,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) @@ -443,6 +449,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 894bd9ac4..d27bafd68 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"