Skip to content

docs: require code coverage & PR coverage reports - #42

Merged
castastrophe merged 1 commit into
mainfrom
castastrophe/coverage-standard
Nov 6, 2026
Merged

castastrophe merged 1 commit into
mainfrom
castastrophe/coverage-standard

Conversation

@castastrophe

@castastrophe castastrophe commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What

Require code coverage & a coverage report on every pull request in repositories with tests.

Why

Coverage was "undecided". envoy already reports it & several other repositories do in part, so the standard follows that setup.

How

  • docs/testing.md: Coverage section (tool by runner, coverage script, Cobertura output, ignore, sticky comment, 50% line floor), Tools row, adoption step, known-gaps row.
  • docs/repository-standards.md: coverage steps for the CI job, coverage in .gitignore.
  • AGENTS.md: Testing bullet.
  • standards-matrix: new coverage check; the manual Coverage row is removed; tests & docs updated.
  • Choices to confirm: c8 for AVA & node:test, @vitest/coverage-v8 for Vitest, Jest's own where the host ecosystem uses it; the 50% floor is envoy's existing fail_below_min default; coverage runs on the Node 26 job only.

Test plan

  • yarn lint: passes.
  • yarn test in skills/standards-matrix: 52 pass, including Vitest, Jest, & missing-part cases.
  • Ran the check against every repository: envoy, glob-concat-cli, markdown-it-anchor-sections, & postcss-licensing pass; the rest list what is missing.

Every repository with tests reports coverage with c8, Vitest's v8
provider, or the host runner's own, & posts one summary comment per
pull request from the Node 26 job, as envoy does. The matrix gets a
Coverage check in place of the undecided manual row.
@changeset-bot

changeset-bot Bot commented Nov 6, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7330e07

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@castastrophe
castastrophe merged commit e51e2b2 into main Nov 6, 2026
2 checks passed
@castastrophe
castastrophe deleted the castastrophe/coverage-standard branch November 6, 2026 20:47
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