Skip to content

test: check that each ApplyFix example matches the code fix - #130

Merged
vbreuss merged 1 commit into
mainfrom
test/apply-fix-matches-code-fix
Nov 15, 2026
Merged

vbreuss merged 1 commit into
mainfrom
test/apply-fix-matches-code-fix

Conversation

@vbreuss

@vbreuss vbreuss commented Nov 15, 2026

Copy link
Copy Markdown
Member

The docs pages show the code after the migration behind a "Migrate" button and claim it is what the code fix produces, but nothing checked that. A docs test now runs the analyzer and the code fix on the "before" block of every ApplyFix box and compares the result with the "after" block, so the examples cannot drift from the real migration.

The strict mock example showed MockBehavior.Default.ThrowingWhenNotSetup(), while the code fix writes Mockolate.MockBehavior, because Moq has a MockBehavior as well.

The docs pages show the code after the migration behind a "Migrate" button and claim it is what the code fix produces, but nothing checked that. A docs test now runs the analyzer and the code fix on the "before" block of every ApplyFix box and compares the result with the "after" block, so the examples cannot drift from the real migration.

The strict mock example showed `MockBehavior.Default.ThrowingWhenNotSetup()`, while the code fix writes `Mockolate.MockBehavior`, because Moq has a `MockBehavior` as well.
@vbreuss vbreuss self-assigned this Nov 15, 2026
Copilot AI balanced review requested due to automatic review settings November 15, 2026 21:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@vbreuss
vbreuss added this pull request to stack #132 November 15, 2026 21:21
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

 12 files  ± 0   12 suites  ±0   49m 34s ⏱️ -12s
305 tests + 7  305 ✅ + 7  0 💤 ±0  0 ❌ ±0 
915 runs  +21  915 ✅ +21  0 💤 ±0  0 ❌ ±0 

Results for commit c9a0047. ± Comparison against base commit d46e3a1.

@vbreuss
vbreuss merged commit 8d109b8 into main Nov 15, 2026
10 checks passed
@vbreuss
vbreuss deleted the test/apply-fix-matches-code-fix branch November 15, 2026 21:32
@github-actions

Copy link
Copy Markdown

This is addressed in release v0.8.0.

@github-actions github-actions Bot added the state: released The issue is released label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state: released The issue is released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants