Split test host controller into focused partial files - #10513
Merged
Amaury Levé (Evangelink) merged 2 commits intoAug 9, 2026
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors TestHostControllersTestHost into focused partial-class files while preserving behavior and API shape.
Changes:
- Separates process configuration, lifecycle, IPC, and disposal logic.
- Retains orchestration in the primary file.
- Keeps all files below 300 lines with UTF-8 BOM encoding.
Show a summary per file
| File | Description |
|---|---|
TestHostControllersTestHost.cs |
Retains streamlined orchestration. |
TestHostControllersTestHost.ProcessConfiguration.cs |
Extracts process and environment setup. |
TestHostControllersTestHost.ProcessLifecycle.cs |
Extracts launch, lifecycle, telemetry, and exit handling. |
TestHostControllersTestHost.Ipc.cs |
Extracts IPC creation and request handling. |
TestHostControllersTestHost.Disposal.cs |
Extracts service and instance disposal. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Balanced
Petr Pokorny (0101)
approved these changes
Aug 7, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Petr Pokorny (0101)
approved these changes
Aug 7, 2026
Amaury Levé (Evangelink)
deleted the
dev/amauryleve/split-test-host-controller
branch
August 9, 2026 17:44
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.
Summary
TestHostControllersTestHostinto focused partial-class files for orchestration, process configuration, process lifecycle, IPC, and disposalValidation
Microsoft.Testing.Platformbuild across net8.0, net9.0, and netstandard2.0Microsoft.Testing.Platform.UnitTestson net8.0, net9.0, and net462CoverageThresholdControllerExitCodeTestsacceptance cases after packing repository packagesCloses #10512