Skip to content

test: integration coverage for resolved_round mapping#467

Merged
tomasz-tomczyk merged 1 commit intomainfrom
test/share-resolved-round-mapping
May 5, 2026
Merged

test: integration coverage for resolved_round mapping#467
tomasz-tomczyk merged 1 commit intomainfrom
test/share-resolved-round-mapping

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • Adds TestShareSyncResolvedRoundMapping end-to-end across crit ↔ crit-web — verifies stamp on resolve, clear on unresolve, and round-trip via the public API
  • Threads ResolvedRound through webComment so future pull paths (and current tests) can consume it
  • Fixes the writeTestCritJSON helper to use the v4 review-folder layout (.crit/review.json) — several share integration tests were already broken on main; this restores them

Review

  • Full share integration suite passes (23/23)
  • go test -race ./... clean
  • golangci-lint run ./... clean

Test plan

🤖 Generated with Claude Code

Adds TestShareSyncResolvedRoundMapping to share_integration_test.go,
verifying that crit-web stamps resolved_round with the review's
current review_round on resolve, clears it on unresolve, and that
both fields round-trip through the public API that crit reads.
Threads ResolvedRound through webComment so future pull paths can
consume it.

Also fixes the writeTestCritJSON helper (and one inline writer) to
use the v4 review-folder layout (.crit/review.json) so multiple
already-broken share integration tests run again.
@tomasz-tomczyk tomasz-tomczyk merged commit d7a9e4b into main May 5, 2026
6 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the test/share-resolved-round-mapping branch May 5, 2026 20:24
@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.06%. Comparing base (32d8c6e) to head (9312378).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #467      +/-   ##
==========================================
+ Coverage   69.04%   69.06%   +0.02%     
==========================================
  Files          36       36              
  Lines       10698    10698              
==========================================
+ Hits         7386     7389       +3     
+ Misses       2748     2746       -2     
+ Partials      564      563       -1     
Flag Coverage Δ
e2e 32.55% <ø> (+0.01%) ⬆️
unit 66.58% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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