diff --git a/Gemfile b/Gemfile index 6251f7f8..63dca713 100644 --- a/Gemfile +++ b/Gemfile @@ -78,7 +78,9 @@ group :development, :test do gem 'faker' gem 'capybara' gem 'poltergeist' - gem 'simplecov' + gem 'simplecov', require: false + gem 'simplecov-json', require: false + gem 'simplecov-rcov', require: false gem 'database_cleaner' end diff --git a/Gemfile.lock b/Gemfile.lock index a587f7a5..fc086541 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -284,6 +284,11 @@ GEM multi_json (~> 1.0) simplecov-html (~> 0.8.0) simplecov-html (0.8.0) + simplecov-json (0.2) + json + simplecov + simplecov-rcov (0.2.3) + simplecov (>= 0.4.1) sinatra (1.4.5) rack (~> 1.4) rack-protection (~> 1.4) @@ -399,6 +404,8 @@ DEPENDENCIES sdoc (~> 0.4.1) sidekiq simplecov + simplecov-json + simplecov-rcov sinatra spring sweetalert-rails diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e709dd67..45581943 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,12 @@ require 'simplecov' +require 'simplecov-json' +require 'simplecov-rcov' + +SimpleCov.formatters = [ + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::JSONFormatter, + SimpleCov::Formatter::RcovFormatter +] SimpleCov.start require 'capybara/poltergeist'