summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2018-04-22 23:48:15 +0300
committerGitHub <noreply@github.com>2018-04-22 23:48:15 +0300
commit6bc4f7e65af36a3ca1e541ba9cbfeea2b7fd4170 (patch)
tree2ac3d04576a53e44e42023cadc5629e56f62b7ab /spec/spec_helper.rb
parent2648b1bb271727976e2d96123fcd51d52af39f79 (diff)
parent82d67f2f337df5dbef8109fc67ddc9a86ba79bdc (diff)
Merge pull request #1300 from wk/integrate-codecov
integrate codecov
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 2b49a6c..fc5167f 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,11 @@
+require 'simplecov'
+SimpleCov.start
+
+if ENV['CI'] == 'true'
+ require 'codecov'
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
+end
+
require 'minitest/autorun'
require 'mocha/minitest'
require 'oxidized'