From dd793bc70e7947cc54a60e968d20b4d69606e2d3 Mon Sep 17 00:00:00 2001 From: Hendy Tanata Date: Mon, 27 Mar 2017 20:52:09 -0700 Subject: [PATCH] Fix: CodeClimate no longer working. https://github.com/codeclimate/ruby-test-reporter/tree/v1.0.8#upgrading-from-pre-10-versions https://github.com/codeclimate/ruby-test-reporter/blob/v1.0.8/CHANGELOG.md#changes-1 https://docs.codeclimate.com/docs/test-coverage-ruby --- .travis.yml | 2 +- Gemfile | 3 ++- spec/spec_helper.rb | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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\//, '') }