spec/spec_helper.rb in resync-client-0.2.5 vs spec/spec_helper.rb in resync-client-0.3.0
- old
+ new
@@ -1,8 +1,13 @@
# ------------------------------------------------------------
-# SimpleCov setup
+# SimpleCov/CodeClimate setup
if ENV['COVERAGE']
+ if ENV['CODECLIMATE_REPO_TOKEN']
+ require 'codeclimate-test-reporter'
+ CodeClimate::TestReporter.start
+ end
+
require 'simplecov'
require 'simplecov-console'
SimpleCov.minimum_coverage 100
SimpleCov.start do