Skip to content

Expand unit test coverage and add PR preview deployments#65

Merged
kmatzen merged 2 commits into
mainfrom
claude/github-test-coverage-lriro6
Jul 25, 2026
Merged

Expand unit test coverage and add PR preview deployments#65
kmatzen merged 2 commits into
mainfrom
claude/github-test-coverage-lriro6

Conversation

@kmatzen

@kmatzen kmatzen commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expands unit test coverage across modelerStore, operations, and the SDF worker modules (bounds, evaluate, codegen, simplify) — statement coverage rises from ~57% to ~92%, branch coverage from ~44% to ~80%.
  • Wires up @vitest/coverage-v8 and a test:coverage script.
  • Adds a PR Preview GitHub Actions workflow that deploys each PR to Cloudflare Pages and posts (and updates) a comment with the live preview URL.

Test plan

  • npm test — 179 tests passing
  • npx tsc --noEmit — clean
  • Confirm the new PR Preview workflow deploys successfully and comments the preview URL once this PR is open (requires CLOUDFLARE_API_TOKEN/CLOUDFLARE_ACCOUNT_ID secrets, already used by the existing deploy workflow)

Generated by Claude Code

claude added 2 commits July 21, 2026 14:30
Adds tests for previously-untested branches: modelerStore's expand/collapse
tracking, addChildToSelected, addNodeFromData drag-drop paths, updateNodeData,
pasteToSelected, moveNode/duplicateSelected guards, and simplifyTree; the
remaining nodeSummary kinds in operations.ts; bounds/evaluate/codegen for
every SDF primitive, pattern, and text/glyph path; and simplify.ts's
splitCreaseEdges crease-detection logic. Also wires up @vitest/coverage-v8
and a test:coverage script.

Statement coverage rises from ~57% to ~92%, branch coverage from ~44% to ~80%.
Builds and deploys each PR's branch to Cloudflare Pages as a preview,
then posts (and updates on subsequent pushes) a PR comment with the
preview URL, so changes can be reviewed live without pulling the branch.
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: https://claude-github-test-coverage.sinter.pages.dev

(updates on every push to this PR)

@kmatzen
kmatzen merged commit ec20a5c into main Jul 25, 2026
5 checks passed
@kmatzen
kmatzen deleted the claude/github-test-coverage-lriro6 branch July 25, 2026 16:35
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.

2 participants