From 9808eb9d6a87ccf5d67c21ad05676ecce9bc39d9 Mon Sep 17 00:00:00 2001 From: Dylan van der Hout Date: Thu, 20 Aug 2026 11:05:32 +0200 Subject: [PATCH] ci: ignore files inside component test directories in codecov The `src/**/Tests/` ignore pattern compiles to the regex `(?s:src/.*/Tests/)\Z`, which is anchored right after the trailing slash and therefore only matches a path ending in `Tests/` - never a file inside it. As a result component test files were still included in the Codecov report at 0% coverage (the root phpunit.xml.dist `` instruments them since it only excludes `tests` and `vendor`), which unfairly lowers patch coverage on test-heavy pull requests. Using `src/**/Tests/**` compiles to `(?s:src/.*/Tests/.*)\Z` and correctly excludes the files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 6a08b9c3f6a..587f0f4657c 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,2 +1,2 @@ ignore: - - "src/**/Tests/" + - "src/**/Tests/**"