Skip to content

Commit cca0565

Browse files
committed
Allow usage of simplecov with START_SIMPLECOV=1
1 parent 53b66c7 commit cca0565

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ source 'https://rubygems.org'
55
gemspec :name => 'json'
66
gemspec :name => 'json_pure'
77
gemspec :name => 'json-java'
8+
9+
gem 'simplecov'

tests/test_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
require 'byebug'
1818
rescue LoadError
1919
end
20+
if ENV['START_SIMPLECOV'].to_i == 1
21+
require 'simplecov'
22+
SimpleCov.start
23+
end

0 commit comments

Comments
 (0)