Skip to content

Use built-in MSTest combinatorial data - #56115

Merged
Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/migrate-mstest-combinatorial
Sep 3, 2026
Merged

Evangelink merged 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/migrate-mstest-combinatorial

Conversation

@Evangelink

Copy link
Copy Markdown
Member

MSTest 4.4 includes built-in combinatorial data support, so the SDK no longer needs the third-party Combinatorial.MSTest package.

This updates the coherent testfx dependency set to stable MSTest/MSTest.Sdk 4.4.0 and Microsoft.Testing.Platform 2.4.0. The four consuming test projects now import Microsoft.VisualStudio.TestTools.UnitTesting.Combinatorial, and repository test-authoring and migration guidance point to the built-in API.

Validation:

  • build.cmd
  • 103 StreamExtensionsTests cases
  • 69 DoNotDirectlyAwaitATaskTests cases
  • 25 FileWatcherTests cases
  • 165 DotnetProjectConvertTests cases

Update to stable MSTest 4.4.0 and Microsoft.Testing.Platform 2.4.0, then remove the third-party Combinatorial.MSTest dependency in favor of MSTest's built-in attributes.

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: b9151c82-340b-46fd-a209-ff5ac2127b11
Copilot AI lite review requested due to automatic review settings September 3, 2026 09:10
@Evangelink
Evangelink requested review from a team, lbussell and mthalman as code owners September 3, 2026 09:10
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🟢 Approval recommended

The changes consistently remove the third-party combinatorial dependency, update consumers to the new MSTest combinatorial namespace, and align version pins/documentation accordingly.

Review tier: Lite
Findings: None

What changed in this PR

This pull request removes the third-party Combinatorial.MSTest dependency from the SDK’s test projects and switches consumers to MSTest 4.4’s combinatorial API surface, while also updating the coherent testfx dependency set to stable versions.

Changes:

  • Remove Combinatorial.MSTest package usage and update test projects to use Microsoft.VisualStudio.TestTools.UnitTesting.Combinatorial.
  • Update pinned testfx versions (MSTest/MSTest.Sdk 4.4.0, Microsoft.Testing.Platform 2.4.0) across repo versioning files.
  • Update contributor/agent guidance to recommend MSTest’s built-in combinatorial support.
File Description
test/​Microsoft.Extensions.DotNetDeltaApplier.Tests/​StreamExtensionsTests.cs Switch combinatorial using to MSTest’s combinatorial namespace.
test/​Microsoft.Extensions.DotNetDeltaApplier.Tests/​Microsoft.Extensions.DotNetDeltaApplier.Tests.csproj Drop Combinatorial.MSTest package reference.
test/​dotnet.Tests/​dotnet.Tests.csproj Drop Combinatorial.MSTest and add global using for MSTest combinatorial namespace.
test/​dotnet-watch.Tests/​HotReload/​SourceFileUpdateTests.HotReloadNotSupported.cs Switch combinatorial using to MSTest’s combinatorial namespace.
test/​dotnet-watch.Tests/​dotnet-watch.Tests.csproj Replace global using + remove Combinatorial.MSTest package reference.
test/​AGENTS.md Add guidance recommending built-in MSTest combinatorial data support.
src/​Microsoft.CodeAnalysis.NetAnalyzers/​tests/​Microsoft.CodeAnalysis.NetAnalyzers.UnitTests/​Microsoft.CodeAnalysis.NetAnalyzers.UnitTests.csproj Remove Combinatorial.MSTest and add global using for MSTest combinatorial namespace.
global.json Update MSTest.Sdk msbuild-sdk pin to stable 4.4.0.
eng/​Version.Details.xml Update coherent testfx dependency versions + SHAs to stable releases.
eng/​Version.Details.props Update testfx version properties to stable 2.4.0 / 4.4.0.
eng/​dependabot/​Packages.props Remove Combinatorial.MSTest from Dependabot-managed package versions.
.github/​skills/​migrate-xunit-to-mstest/​SKILL.md Update migration guidance to point to MSTest 4.4+ combinatorial support.
.github/​skills/​migrate-xunit-to-mstest/​references/​mapping-cheatsheet.md Update mapping cheatsheet to point to MSTest 4.4+ combinatorial support.

@Evangelink
Evangelink enabled auto-merge (squash) September 3, 2026 10:01
@Evangelink
Evangelink merged commit 55b7247 into dotnet:main Sep 3, 2026
25 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 4, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 30045c15 Deployed Sep 3, 2026 by Evangelink via pre_activation #2679
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.

3 participants