From 36a9badc529b9ab182b2ff287c10fa288afd9c79 Mon Sep 17 00:00:00 2001 From: Leena Date: Wed, 11 Jan 2017 16:20:15 +0530 Subject: [PATCH] Add SimpleCov for coverage as per the latest the CodeClimate requirement --- .gitignore | 2 ++ Gemfile | 6 +++++- Gemfile.lock | 9 +++++---- spec/spec_helper.rb | 4 +++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index c7bca20..487deb0 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,5 @@ /tmp /config/database.yml + +/coverage diff --git a/Gemfile b/Gemfile index 8aaef71..6fda410 100644 --- a/Gemfile +++ b/Gemfile @@ -43,7 +43,11 @@ group :development, :test do gem 'factory_girl_rails' gem 'shoulda-matchers' end -gem "codeclimate-test-reporter", group: :test, require: nil + +group :test do + gem "simplecov" + gem "codeclimate-test-reporter", "~> 1.0.0" +end group :development do # Access an IRB console on exception pages or by using <%= console %> in views diff --git a/Gemfile.lock b/Gemfile.lock index c9adc09..91c21d5 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -65,8 +65,8 @@ GEM thor (~> 0.19) builder (3.2.2) byebug (6.0.2) - codeclimate-test-reporter (0.4.8) - simplecov (>= 0.7.1, < 1.0.0) + codeclimate-test-reporter (1.0.3) + simplecov coffee-rails (4.1.0) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) @@ -250,7 +250,7 @@ PLATFORMS DEPENDENCIES activeadmin! byebug - codeclimate-test-reporter + codeclimate-test-reporter (~> 1.0.0) coffee-rails (~> 4.1.0) devise factory_girl_rails @@ -265,6 +265,7 @@ DEPENDENCIES sass-rails (~> 5.0) sdoc (~> 0.4.0) shoulda-matchers + simplecov spring therubyracer turbolinks @@ -272,4 +273,4 @@ DEPENDENCIES web-console (~> 2.0) BUNDLED WITH - 1.10.6 + 1.13.7 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a1943db..d2c440d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -17,7 +17,9 @@ # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require "codeclimate-test-reporter" -CodeClimate::TestReporter.start +require "simplecov" + +SimpleCov.start RSpec.configure do |config| # rspec-expectations config goes here. You can use an alternate