From 6d68da5ae11c80b07c2b60b57a9f4175362ffc74 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 25 Jan 2015 19:56:39 +0100 Subject: [PATCH] added Rcov formatter for simplecov --- Gemfile | 4 +++- Gemfile.lock | 7 +++++++ spec/spec_helper.rb | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) 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'