feat(test): support per-project webServer configuration#40869
Open
yury-s wants to merge 3 commits into
Open
Conversation
Add `webServer` to TestProject so each project can declare its own dev server(s). A per-project server is launched only when the project is selected (directly via --project or through the dependency closure), in addition to any top-level `webServer`. Fixes microsoft#22496
pavelfeldman
approved these changes
May 16, 2026
Plugin registration carries a single optional projectId. The task builders no longer take a TestRun and no longer compute an active-plugin list up front; each plugin task's setup gates itself with \`!plugin.projectId || testRun.projectClosureIds.has(plugin.projectId)\`.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Drop the title-based exclusion so config.webServer is shape- and command-non-empty-checked at load time, same as project.webServer. Also revert the testRunner.ts hoists from the previous follow-up commit; the task builders no longer need the TestRun up front.
Contributor
Test results for "MCP"7099 passed, 1104 skipped Merge workflow run. |
Contributor
Test results for "tests 1"5 failed 1 flaky41928 passed, 850 skipped Merge workflow run. |
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
webServertoTestProjectso each project can declare its own dev server(s); a per-project server is launched only when the project is selected (directly via--projector through the dependency closure), in addition to any top-levelwebServer.Fixes #22496