Repository navigation
Parallelize additional MSTest integration suites - #55965
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8f4a0c49-99cb-433e-96b3-e322a22f7546
Co-authored-by: Copilot App <[email protected]>
Run publish test classes concurrently while preserving serial execution within each class, and isolate relative binlog output under each test asset. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR increases MSTest parallel execution across several integration test suites in test/, primarily by enabling MSTest parallelization scopes (method- or class-level) and updating test infrastructure usage to avoid shared-state contention (test directories, working directories, and one-time global initialization).
Changes:
- Enabled MSTest parallelization for EndToEnd and ApiCompat integration tests (method-level) and for dotnet-new, Publish, and TemplateEngine IDE integration tests (class-level).
- Updated tests to use more isolated per-test/per-case asset directories and working directories to reduce collisions under parallel execution.
- Moved/guarded some one-time/global test initialization to be safer under parallel test runners.
Show a summary per file
| File | Description |
|---|---|
| test/TemplateEngine/Microsoft.TemplateEngine.IDE.IntegrationTests/VerifySettingsFixture.cs | Make Verify initialization effectively one-time and thread-safe. |
| test/TemplateEngine/Microsoft.TemplateEngine.IDE.IntegrationTests/Microsoft.TemplateEngine.IDE.IntegrationTests.csproj | Enable class-level MSTest parallelization. |
| test/Microsoft.NET.Publish.Tests/Microsoft.NET.Publish.Tests.csproj | Enable class-level MSTest parallelization with note about shared paths within a class. |
| test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishIncrementally.cs | Set publish working directory to the test asset root for isolation. |
| test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs | Set publish working directory to the test asset root for isolation. |
| test/EndToEnd.Tests/ProjectBuildTests.cs | Improve uniqueness/isolation of test directories; propagate test name into helper methods. |
| test/EndToEnd.Tests/GivenWindowsApp.cs | Adjust test asset identifier composition to avoid collisions. |
| test/EndToEnd.Tests/GivenDotNetUsesMSBuild.cs | Use an explicit identifier when creating test directories. |
| test/EndToEnd.Tests/EndToEnd.Tests.csproj | Switch EndToEnd suite to method-level MSTest parallelization. |
| test/dotnet-new.IntegrationTests/TemplateEngineSamplesTest.cs | Move .cshtml extension registration out of the test method. |
| test/dotnet-new.IntegrationTests/TemplateDiscoveryTool.cs | Use a per-instance temp root and add cleanup. |
| test/dotnet-new.IntegrationTests/ModuleInitializer.cs | Centralize one-time verifier initialization and .cshtml extension registration. |
| test/dotnet-new.IntegrationTests/DotnetNewLocaleTests.cs | Remove process-wide culture mutation to reduce shared-state interference. |
| test/dotnet-new.IntegrationTests/DotnetNewInstallTests.cs | Use a per-test temp root to avoid collisions when paths contain @. |
| test/dotnet-new.IntegrationTests/dotnet-new.IntegrationTests.csproj | Enable class-level MSTest parallelization with fixture-sharing note. |
| test/Compatibility/ApiCompat/Microsoft.DotNet.ApiCompat.IntegrationTests/Microsoft.DotNet.ApiCompat.IntegrationTests.csproj | Enable method-level MSTest parallelization. |
Review details
- Files reviewed: 16/16 changed files
- Comments generated: 2
- Review effort level: Lite
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 8dff6d5a-a336-47de-acb0-815997f7237b
Evangelink
enabled auto-merge
August 27, 2026 13:36
Member
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
Member
Author
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
JeremyKuhne
approved these changes
Aug 28, 2026
Evangelink
had a problem deploying
to
copilot-pat-pool
August 28, 2026 02:14 — with
GitHub Actions
Failure
This branch had an error being deployed
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
Validation
net11andnet472passed all 16 tests.net11completed 138 tests (137 passed, 1 skipped);net481completed 105 tests (104 passed, 1 skipped).