diff options
author | Florian Frank <flori@ping.de> | 2016-06-02 11:53:19 +0200 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2016-06-02 11:53:19 +0200 |
commit | cca0565febed4006398d4fc2f85d99d7020f75df (patch) | |
tree | 662891e3d887bf0d90f49fb3ca09ab35ca0644b5 /tests | |
parent | 53b66c76f346ef927bde16c97d404a7612d96449 (diff) | |
download | json-cca0565febed4006398d4fc2f85d99d7020f75df.tar.gz |
Allow usage of simplecov with START_SIMPLECOV=1
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_helper.rb | 4 |
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 |