Skip to content

ci: report test coverage to Codecov - #203

Merged
maritonx merged 1 commit into
mainfrom
ci/coverage
Oct 23, 2026
Merged

maritonx merged 1 commit into
mainfrom
ci/coverage

Conversation

@maritonx

Copy link
Copy Markdown
Owner

Adds test coverage reporting for the server packages. It reports only and enforces no threshold yet.

  • pnpm coverage builds packages/* with tsup --sourcemap and runs every package's vitest suite with v8 coverage (--only, so the builds with maps stay). It then merges the reports into coverage/lcov.info with repo-relative packages/*/src paths and prints line coverage per package.
  • Most code is reached through other packages' dist, since the integration suite imports the built core. Coverage therefore includes dist, and the source maps carry it back to src.
  • Left out:
    • admin: a Vue app tested e2e.
    • nuxt: its tests run a Nuxt server in another process.
    • integration: holds only tests.
    • examples and templates.
  • New CI job coverage (ubuntu-24.04, Node 24) uploads to Codecov when CODECOV_TOKEN is set. It skips the upload otherwise, such as on forks.
  • codecov.yml: the project and patch statuses are informational.
  • README badge, plus a section in CONTRIBUTING.

Baseline locally: 90.0% of lines. The lowest are next (66.7%), cli (68.9%), plugin-ecommerce (76.2%) and plugin-multi-tenant (76.8%).

Before merge: install the Codecov GitHub App on the repo and add the CODECOV_TOKEN repository secret. Until then the job runs and the upload is skipped.

🤖 Generated with Claude Code

pnpm coverage builds the packages with source maps, runs every package's
tests with v8 coverage and merges the reports into coverage/lcov.info with
per-package line coverage. A CI job uploads it to Codecov when CODECOV_TOKEN
is set; the checks are informational. Baseline: 90.0% of lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maritonx
maritonx merged commit 4db176e into main Oct 23, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant