diff --git a/.travis.yml b/.travis.yml index 1e639f4..1ec273d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ before_script: - git config --global user.email "you@example.com" - git config --global user.name "Your Name" -script: CODECLIMATE_REPO_TOKEN=ea0ada8842b47f59715526e88df53a81afff061152ce67bb73a8baa75443ea43 bundle exec rspec +script: CODECLIMATE_REPO_TOKEN=ea0ada8842b47f59715526e88df53a81afff061152ce67bb73a8baa75443ea43 bundle exec rspec && bundle exec codeclimate-test-reporter rvm: - 2.0.0 diff --git a/Gemfile b/Gemfile index 4f825ab..7a1ecfe 100644 --- a/Gemfile +++ b/Gemfile @@ -10,5 +10,6 @@ group :dev do end group :test do - gem 'codeclimate-test-reporter', require: nil + gem 'simplecov' + gem 'codeclimate-test-reporter', '~> 1.0.0', require: nil end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cd19799..5a2e4c6 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true -require 'codeclimate-test-reporter' -CodeClimate::TestReporter.start +require 'simplecov' +SimpleCov.start Dir['spec/support/**/*.rb'].each { |f| require f.sub(/\Aspec\//, '') }