Lightlines
By dotnet

migrate-xunit-to-mstest

dotnet2k installs

Move xUnit tests to MSTest without changing runners.

What it does

Migrates xUnit.net test suites to MSTest v4 and verifies that test discovery, results, and execution behavior are preserved.

When to use it

Use when a project contains xUnit packages or source and the user wants MSTest; report a no-op if it is already migrated.

How to use it

Give it a project to migrate; it converts the tests to MSTest, builds, and runs them to verify parity.

What you provide

  • An existing project

Latest review

What you need · 3

Test applications must target .NET 8+ or .NET Framework 4.6.2+ for MSTest v4; unsupported targets stop the migration before package changes.

Requires the dotnet CLI to build and run tests with the existing platform, filter, and configuration.

Uses platform-detection when the test platform is ambiguous; whether it must be installed to complete the workflow is unstated.


Access · 0

No additional actions listed.