Repository navigation
docs: require code coverage & PR coverage reports - #42
Merged
Merged
Conversation
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,coveragescript, 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,coveragein.gitignore.AGENTS.md: Testing bullet.standards-matrix: newcoveragecheck; the manual Coverage row is removed; tests & docs updated.node:test,@vitest/coverage-v8for Vitest, Jest's own where the host ecosystem uses it; the 50% floor is envoy's existingfail_below_mindefault; coverage runs on the Node 26 job only.Test plan
yarn lint: passes.yarn testinskills/standards-matrix: 52 pass, including Vitest, Jest, & missing-part cases.