summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2016-06-02 11:53:19 +0200
committerFlorian Frank <flori@ping.de>2016-06-02 11:53:19 +0200
commitcca0565febed4006398d4fc2f85d99d7020f75df (patch)
tree662891e3d887bf0d90f49fb3ca09ab35ca0644b5 /tests
parent53b66c76f346ef927bde16c97d404a7612d96449 (diff)
downloadjson-cca0565febed4006398d4fc2f85d99d7020f75df.tar.gz
Allow usage of simplecov with START_SIMPLECOV=1
Diffstat (limited to 'tests')
-rw-r--r--tests/test_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_helper.rb b/tests/test_helper.rb
index 752f5f5..9d3665d 100644
--- a/tests/test_helper.rb
+++ b/tests/test_helper.rb
@@ -17,3 +17,7 @@ begin
require 'byebug'
rescue LoadError
end
+if ENV['START_SIMPLECOV'].to_i == 1
+ require 'simplecov'
+ SimpleCov.start
+end