Skip to content

Add end-to-end test - #57250

Closed
tmat wants to merge 2 commits into
dotnet:release/11.0.2xxfrom
tmat:empty-updates
Closed

tmat wants to merge 2 commits into
dotnet:release/11.0.2xxfrom
tmat:empty-updates

Conversation

@tmat

@tmat tmat commented Nov 20, 2026

Copy link
Copy Markdown
Member

Add end-to-end test

@tmat
tmat requested review from a team, lbussell and mthalman as code owners November 20, 2026 16:15
Copilot AI balanced review requested due to automatic review settings November 20, 2026 16:15
@tmat
tmat changed the base branch from main to release/11.0.2xx November 20, 2026 16:15
@tmat
tmat requested a review from a team as a code owner November 20, 2026 16:15
@tmat tmat closed this Nov 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The regression test is enabled against Roslyn dependencies that lack the deletion fix, and its unbounded wait can hang instead of failing.

2 open issues
What changed in this PR

Adds end-to-end regression coverage to the dotnet watch Hot Reload tests for deleting an added method after a referenced-project update.

Changes:

  • Adds an asynchronous helper for waiting on process output.
  • Adds a multi-project test that sequences application edits, a dependency-only edit, and method deletion.
File Description
test/​dotnet-watch.Tests/​TestUtilities/​InProcTestWatcher.cs Adds WaitForOutputAsync to synchronize tests with application output.
test/​dotnet-watch.Tests/​HotReload/​SourceFileUpdateTests.cs Adds the method-deletion regression scenario with a referenced library.

Review effort: Balanced

Comment on lines +81 to +82
[TestMethod]
public async Task DeleteAddedMethodAfterDependencyUpdate()
// 4. Delete the method added in step 2. This currently throws
// NullReferenceException in DefinitionMap.GetPreviousMethodHandle.
UpdateSourceFile(programPath, appV2);
await applied.WaitAsync(w.ShutdownSource.Token);

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — c69d20ff Deployed Nov 20, 2026 by tmat via pre_activation #15339
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