diff --git a/Gemfile b/Gemfile index 4e51d225..1bb78bbe 100644 --- a/Gemfile +++ b/Gemfile @@ -45,11 +45,12 @@ end group :test do gem 'autotest-rails' gem 'capybara' - gem 'codeclimate-test-reporter', require: nil + gem 'codeclimate-test-reporter', require: false gem 'database_cleaner' gem 'nyan-cat-formatter' gem 'rake' gem 'rspec-autotest' gem 'rspec-rails', '>= 3.0.0' gem 'selenium-webdriver' + gem 'simplecov', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 0a482d48..3219009a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -338,6 +338,7 @@ DEPENDENCIES sass-rails (~> 4.0.3) sdoc (~> 0.4.0) selenium-webdriver + simplecov slim sorcery spring diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 90b8798a..8e515d8a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -15,8 +15,13 @@ # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -require 'codeclimate-test-reporter' -CodeClimate::TestReporter.start if ENV['CODECLIMATE_REPO_TOKEN'] +if ENV['CODECLIMATE_REPO_TOKEN'] + require 'codeclimate-test-reporter' + CodeClimate::TestReporter.start +else + require 'simplecov' + SimpleCov.start('rails') +end RSpec.configure do |config| # These two settings work together to allow you to limit a spec run