From 8bb3ac13e3c03fe95ec859c4865ec33e1717503e Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Tue, 1 Jul 2025 13:51:07 +0200 Subject: [PATCH] Prevent test_frameworks profile to hide source directories This commit prevents hiding valid production paths like: - app/models/test/me.rb - app/models/features/ftw.rb - app/services/spec/clever.rb - lib/autotest/forever.rb Closes https://github.com/simplecov-ruby/simplecov/issues/1016 --- lib/simplecov/profiles/test_frameworks.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/simplecov/profiles/test_frameworks.rb b/lib/simplecov/profiles/test_frameworks.rb index 3089ff59e..c92b5d1c0 100644 --- a/lib/simplecov/profiles/test_frameworks.rb +++ b/lib/simplecov/profiles/test_frameworks.rb @@ -1,8 +1,5 @@ # frozen_string_literal: true SimpleCov.profiles.define "test_frameworks" do - add_filter "/test/" - add_filter "/features/" - add_filter "/spec/" - add_filter "/autotest/" + add_filter %r{^/(test|features|spec|autotest)/} end