From 305c0d84dc7643593cbc51c6976e970e20f43e2b Mon Sep 17 00:00:00 2001 From: debbbbie Date: Thu, 22 Dec 2016 03:10:13 +0800 Subject: [PATCH] Run SimpleCov at local test --- spec/spec_helper.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5f7c99aa..9f94db17 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,10 @@ -require "codeclimate-test-reporter" -CodeClimate::TestReporter.start +if ENV['CODECLIMATE_REPO_TOKEN'] + require "codeclimate-test-reporter" + CodeClimate::TestReporter.start +else + require 'simplecov' + SimpleCov.start +end require "pry" require "rspec"