From b2ba8714211d4df67ad4643451b553ff7e015c65 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 11 Oct 2025 03:18:54 +0100 Subject: [PATCH] Adds config for codecov coverage monitoring --- codecov.yaml | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 codecov.yaml diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000..64510c1 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,73 @@ +codecov: + require_ci_to_pass: no + notify: + wait_for_ci: no + +coverage: + precision: 2 + round: down + range: "50...100" + + status: + project: + default: + target: 60% + threshold: 0% + informational: true + if_ci_failed: success + patch: + default: + target: 50% + threshold: 0% + informational: true + if_ci_failed: success + +component_management: + individual_components: + - component_id: api + name: API Routes + paths: + - src/routes/api/**/* + + - component_id: frontend + name: Frontend + paths: + - src/routes/**/*.svelte + - src/lib/components/** + - src/styles/** + + - component_id: utils + name: Utilities + paths: + - src/lib/utils/** + +ignore: + - "tests/**/*" + - ".svelte-kit/**/*" + - "build/**/*" + - "playwright-report/**/*" + - "coverage/**/*" + - "**/*.config.ts" + - "**/*.config.js" + - "src/app.html" + - "**/*.d.ts" + - "static/**/*" + - ".github/**/*" + +comment: false + +flags: + unittests: + carryforward: true + carryforward_mode: all + + api-tests: + carryforward: true + carryforward_mode: all + + e2e-tests: + carryforward: true + carryforward_mode: all + +github_checks: + annotations: true