diff --git a/templates/boot/start.rb b/templates/boot/start.rb index 7c12dfc..c356767 100644 --- a/templates/boot/start.rb +++ b/templates/boot/start.rb @@ -3,7 +3,7 @@ require "bundler/setup" if ["development", "test"].include?(ENV["FOOBARA_ENV"]) - # :nocov: + # simplecov:disable if ENV["CI"] != "true" if ENV["RUBY_DEBUG"] == "true" require "debug" @@ -14,7 +14,7 @@ require "pry-byebug" end end - # :nocov: + # simplecov:enable end require_relative "config" diff --git a/templates/spec/support/simplecov.rb b/templates/spec/support/simplecov.rb index 50577cf..048686f 100644 --- a/templates/spec/support/simplecov.rb +++ b/templates/spec/support/simplecov.rb @@ -1,7 +1,7 @@ require "simplecov" SimpleCov.start do - add_filter "spec/support" + skip "spec/support" # enable_coverage :branch minimum_coverage line: 100 # TODO: enable this? worth it to get to 100% branch coverage?