Split ApplyDeltaTests into multiple types#53158
Merged
tmat merged 2 commits intodotnet:release/10.0.3xxfrom Feb 26, 2026
Merged
Split ApplyDeltaTests into multiple types#53158tmat merged 2 commits intodotnet:release/10.0.3xxfrom
tmat merged 2 commits intodotnet:release/10.0.3xxfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors test organization by splitting the large ApplyDeltaTests.cs file (1408 lines) into 9 smaller, more focused test files, improving test maintainability and discoverability.
Changes:
- Deletes the monolithic
ApplyDeltaTests.csfile - Creates 9 new focused test files organized by functional area (termination, source updates, project updates, metadata handlers, Razor/Blazor, MAUI, logging, auto-restart, and Aspire)
- Preserves all existing test logic and assertions
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| test/dotnet-watch.Tests/HotReload/ApplyDeltaTests.cs | Deletes the original 1408-line test file |
| test/dotnet-watch.Tests/HotReload/TerminationTests.cs | New file containing graceful termination tests for Windows (Ctrl+C) and Unix (SIGTERM) |
| test/dotnet-watch.Tests/HotReload/SourceFileUpdateTests.cs | New file containing tests for source file additions, changes, renames, and dependency updates |
| test/dotnet-watch.Tests/HotReload/RazorHotReloadTests.cs | New file containing Blazor WebAssembly and Razor component hot reload tests |
| test/dotnet-watch.Tests/HotReload/ProjectUpdateTests.cs | New file containing tests for project file changes, Directory.Build.props updates, and global usings |
| test/dotnet-watch.Tests/HotReload/MetadataUpdateHandlerTests.cs | New file containing tests for metadata update handler behavior and exceptions |
| test/dotnet-watch.Tests/HotReload/MauiHotReloadTests.cs | New file containing MAUI Blazor hot reload tests |
| test/dotnet-watch.Tests/HotReload/LoggingTests.cs | New file containing binary log generation tests |
| test/dotnet-watch.Tests/HotReload/AutoRestartTests.cs | New file containing auto-restart tests for rude edits, runtime rude edits, and no-effect edits |
| test/dotnet-watch.Tests/HotReload/AspireHotReloadTests.cs | New file containing Aspire hot reload tests including build error handling and auto-restart scenarios |
Member
Author
DustinCampbell
approved these changes
Feb 26, 2026
This was referenced Feb 27, 2026
This was referenced Mar 11, 2026
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.
Allows tests to run in parallel speeding up the overall test run.