ci(coverage): add vitest v8 coverage with 70% line threshold#268
Merged
snipcodeit merged 1 commit intomainfrom Mar 6, 2026
Merged
Conversation
This was referenced Mar 6, 2026
…hold - Add vitest and @vitest/coverage-v8 devDependencies - Create vitest.config.js with v8 provider, text/html/lcov reporters, 70% line threshold, and coverage/ output directory - Add test:coverage script (vitest run --coverage) - Add coverage/ to .gitignore - Add coverage badge to README.md - Add test.yml with optional coverage upload step (continue-on-error) Closes #257 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2fd7d6f to
da56566
Compare
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.
Summary
coverage/npm run test:coverageto exit non-zero if violatedcoverage/to.gitignoreand coverage badge to READMEcontinue-on-error: truefor gradual ramp-upCloses #257
Milestone Context
Changes
vitest.config.js(new)./coverage/lines: 70package.jsonvitest@^4.0.18,@vitest/coverage-v8@^4.0.18"test:coverage": "vitest run --coverage".gitignorecoverage/to exclude generated reports from gitREADME.md[](./coverage/lcov-report/index.html).github/workflows/test.yml(new)continue-on-error: true)actions/upload-artifact@v4Test Plan
npm ci && npm run test:coveragecompletes without errorcoverage/directory is created withlcov-report/,lcov.info, and text outputgit check-ignore -v coverage/confirms coverage/ is gitignorednpm run test:coverageexits non-zeroCross-References