summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/spec
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby/spec')
-rw-r--r--CLI/ruby/spec/spec_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/CLI/ruby/spec/spec_helper.rb b/CLI/ruby/spec/spec_helper.rb
index 0c453de..e7feb44 100644
--- a/CLI/ruby/spec/spec_helper.rb
+++ b/CLI/ruby/spec/spec_helper.rb
@@ -1,7 +1,10 @@
# frozen_string_literal: true
require "simplecov"
-SimpleCov.start
+SimpleCov.start do
+ add_filter "/spec/"
+ enable_coverage :branch
+end
require "codecov"
SimpleCov.formatter = SimpleCov::Formatter::Codecov if ENV["CODECOV_TOKEN"]