webcanvas: add test:coverage script with coverage reporting#266
Open
webcanvas: add test:coverage script with coverage reporting#266
Conversation
usage: ``` pnpm --filter @thorvg/webcanvas test:coverage open packages/webcanvas/coverage/index.html # Open report page ``` related: #264
There was a problem hiding this comment.
Pull request overview
Adds Vitest V8 coverage reporting to @thorvg/webcanvas to support the testing/coverage goals in issue #264 and produce HTML/LCOV outputs for inspection and CI integration later.
Changes:
- Add
test:coveragescript to runvitestwith coverage enabled. - Configure Vitest coverage (V8 provider + text/html/lcov reporters) and output directory.
- Ignore generated coverage artifacts in the package
.gitignore.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds @vitest/coverage-v8 and its transitive dependencies to the lockfile. |
| packages/webcanvas/vitest.config.ts | Configures coverage provider/reporters and coverage output directory. |
| packages/webcanvas/package.json | Adds test:coverage script and @vitest/coverage-v8 devDependency. |
| packages/webcanvas/.gitignore | Ignores the generated coverage/ directory. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🚀 Playground preview deployment ready! 🎮 Playground: https://thorvg-playground-7o7zkgl14-thorvg-web.vercel.app |
|
🚀 Perf Test preview deployment ready! 📊 Perf Test: https://thorvg-perf-test-pazbnkrez-thorvg-web.vercel.app |
Member
Author
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.
usage:
related: #264