From cca0565febed4006398d4fc2f85d99d7020f75df Mon Sep 17 00:00:00 2001 From: Florian Frank Date: Thu, 2 Jun 2016 11:53:19 +0200 Subject: Allow usage of simplecov with START_SIMPLECOV=1 --- Gemfile | 2 ++ tests/test_helper.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Gemfile b/Gemfile index 71fac47..51ff10a 100644 --- a/Gemfile +++ b/Gemfile @@ -5,3 +5,5 @@ source 'https://rubygems.org' gemspec :name => 'json' gemspec :name => 'json_pure' gemspec :name => 'json-java' + +gem 'simplecov' 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 -- cgit v1.2.1