gather coverage data locally

This commit is contained in:
Hauke Klement
2015-02-09 10:03:14 +01:00
parent ba64630d45
commit 222b685fa2
3 changed files with 10 additions and 3 deletions

View File

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