spec/spec_helper.rb in db_mod-0.0.5 vs spec/spec_helper.rb in db_mod-0.0.6
- old
+ new
@@ -1,6 +1,12 @@
-require 'simplecov'
-SimpleCov.start
+# Send coverage report to codeclimate when a repo token is given
+if ENV['CODECLIMATE_REPO_TOKEN']
+ require 'codeclimate-test-reporter'
+ CodeClimate::TestReporter.start
+else
+ require 'simplecov'
+ SimpleCov.start
+end
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'db_mod'