From 94a2f9c9e31e713bd4a06b8f2d9ee40d40181acc Mon Sep 17 00:00:00 2001 From: kitsuyui Date: Wed, 10 Jun 2026 01:31:45 +0900 Subject: [PATCH] fix: exclude spec files from codeToTestRatio code glob The `code` glob `src/**/*.ts` matched spec files (`*.spec.ts`), causing them to appear in both the code and test sets. This inflated the code line count and made the ratio lower than the actual production-to-test ratio. Add `!src/**/*.spec.ts` to exclude spec files from the code side, matching the pattern used in octocov's own config for Go test files. --- .octocov.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.octocov.yml b/.octocov.yml index b69e8fc..2dfe947 100644 --- a/.octocov.yml +++ b/.octocov.yml @@ -5,6 +5,7 @@ coverage: codeToTestRatio: code: - "src/**/*.ts" + - "!src/**/*.spec.ts" test: - "src/**/*.spec.ts" testExecutionTime: