Add SimpleCov for coverage as per the latest the CodeClimate requirement

This commit is contained in:
Leena
2017-01-11 16:20:15 +05:30
parent 1c04824316
commit 36a9badc52
4 changed files with 15 additions and 6 deletions

2
.gitignore vendored
View File

@@ -17,3 +17,5 @@
/tmp
/config/database.yml
/coverage

View File

@@ -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

View File

@@ -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

View File

@@ -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