From 3ce68cd0baab2c959f67052983da8c636f547bc9 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Fri, 10 May 2024 09:41:22 +0300 Subject: [PATCH] Merge pull request #3084 from nevinera/nev--fix-simplecov-filters Use stronger path-matching for simplecov filters --- script/rspec_with_simplecov | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/rspec_with_simplecov b/script/rspec_with_simplecov index fc7c6469de..f40bb29027 100755 --- a/script/rspec_with_simplecov +++ b/script/rspec_with_simplecov @@ -28,10 +28,11 @@ begin require 'simplecov' SimpleCov.start do - add_filter "bundle/" - add_filter "tmp/" - add_filter "spec/" - minimum_coverage(100) + root File.expand_path("../..", __FILE__) + add_filter %r{/bundle/} + add_filter %r{/tmp/} + add_filter %r{/spec/} + minimum_coverage(99) end end rescue LoadError # rubocop:disable Lint/SuppressedException