test/test_helper.rb in redgraph-0.1.1 vs test/test_helper.rb in redgraph-0.1.2
- old
+ new
@@ -1,6 +1,15 @@
# frozen_string_literal: true
+if ENV['COVERAGE']
+ require 'simplecov'
+
+ SimpleCov.start do
+ enable_coverage :branch
+ add_filter %r{^/test/}
+ end
+end
+
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "redgraph"
require "minitest/autorun"
require "pry"