Files
Elian DoranandClaude Opus 5.5 714b13239c ci(web-clipper): enforce coverage and upload it to Codecov
The web clipper's specs ran in dev.yml's catch-all "Run the rest of the
tests" step without --coverage, so nothing measured or gated coverage
and nothing reached Codecov.

The suite now has its own step with --coverage, followed by the coverage
and test-result uploads under a `web-clipper` flag, mirroring commons;
the catch-all step excludes it so it runs once. codecov.yml gains the
flag with carryforward.

vitest.config.mts sets thresholds of 95% for lines, statements and
functions and 90% for branches, a few points under the 97.6/97.7/98.6/
93.7% the suite reaches now that the popup and options pages are in
Preact and tested. The lcov reporter's projectRoot is pinned to the
repo root, as every other suite does, so `SF:` paths are unambiguous
across the monorepo.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-10-10 21:59:08 +03:00

78 lines
1.9 KiB
YAML

coverage:
status:
project:
default:
target: auto
threshold: 1%
# The share code is held at full coverage by the share-theme, server and standalone suites;
# this status checks the merged result.
share:
target: 100%
paths:
- packages/share-theme/src/
- packages/trilium-core/src/share/
- apps/server/src/share/
- apps/standalone/src/lightweight/share_provider.ts
patch:
default:
target: 80%
threshold: 5%
# No `fixes:` needed: every suite pins the lcov reporter's `projectRoot` to the repo root, so
# `SF:` paths already arrive repo-root-relative. Leaving them project-relative would make the
# shallow ones (`src/index.ts`, `src/utils.ts`) ambiguous across the monorepo, and Codecov would
# attribute their coverage to whichever project won the match.
flags:
client:
paths:
- apps/client/src/
carryforward: true
server:
paths:
- apps/server/src/
- packages/trilium-core/src/
carryforward: true
standalone:
paths:
- apps/standalone/src/
- packages/trilium-core/src/
carryforward: true
desktop:
paths:
- apps/desktop/src/
carryforward: true
commons:
paths:
- packages/commons/src/
carryforward: true
ckeditor5:
paths:
- packages/ckeditor5/src/
carryforward: true
codemirror:
paths:
- packages/codemirror/src/
carryforward: true
highlightjs:
paths:
- packages/highlightjs/src/
carryforward: true
pdfjs-viewer:
paths:
- packages/pdfjs-viewer/src/
carryforward: true
share-theme:
paths:
- packages/share-theme/src/
carryforward: true
web-clipper:
paths:
- apps/web-clipper/entrypoints/
- apps/web-clipper/utils.ts
carryforward: true
comment:
layout: "condensed_header, condensed_files, condensed_footer"
require_changes: true