
migrate-nunit-to-mstest
Convert .NET tests from NUnit 3/4 to MSTest v4 while preserving VSTest or MTP
by dotnetFree
Description
Migrate NUnit to MSTest is an agent skill that converts .NET tests from NUnit 3 or 4 to MSTest v4 while keeping the same target framework and the same test platform, whether that is VSTest or Microsoft.Testing.Platform. A good conversion builds, discovers the same test cases, and keeps pass and fail results, lifecycle behavior, data-driven cases, filtering and concurrency the same. The skill handles replacing the NUnit and NUnit3TestAdapter packages and converting the Test, TestCase and related attributes. It only applies when the project contains NUnit packages or source and the user wants MSTest. If the project already uses MSTest and has no NUnit tests, the skill reports that no framework migration is needed and makes no changes. It asks the agent to keep the requested scope, to change shared props only when they own NUnit package or runner configuration, and to report the source NUnit version, the preserved runner, the changed files, the high-risk semantic mappings and the actual test counts. It does not combine the change with a target-framework upgrade or a VSTest-to-MTP move. It is part of the dotnet/skills repository.…
Highlights
- Converts NUnit 3 or 4 tests to MSTest v4
- Keeps the same target framework and test platform
- Replaces NUnit packages and test attributes
- Reports test counts and risky semantic mappings
Ratings & Reviews
No ratings yet
Be the first to rate migrate-nunit-to-mstest.
People also visit
migrate-nunit-to-mstest FAQ
What does this skill do?
It converts a project's NUnit tests to MSTest v4, verifies that the same tests are discovered and that behavior is preserved, and reports what changed.
How do I install it?
Run npx skills add https://github.com/dotnet/skills --skill migrate-nunit-to-mstest in your project.
Is it free?
Yes. The skill page lists its pricing as Free.
When does it do nothing?
When the project already uses MSTest and has no NUnit tests. The skill then reports that no framework migration is needed.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best migrate-nunit-to-mstest alternatives?
Popular alternatives to migrate-nunit-to-mstest include migrate-xunit-to-mstest, migrate-mstest-v1v2-to-v3 and migrate-mstest-v3-to-v4. See all migrate-nunit-to-mstest alternatives









