-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add docs for tpv0 removal #48173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nohwnd
wants to merge
6
commits into
dotnet:main
Choose a base branch
from
nohwnd:migrate-tmi-document
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add docs for tpv0 removal #48173
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b03ef4f
Add docs for tmi removal
nohwnd a6a104c
Add to TOC
nohwnd d711fda
Add youssefs suggestions
nohwnd 100f408
Apply suggestions from code review
IEvangelist 723ee65
Update docs/core/testing/unit-testing-mstest-migration-from-tmi.md
nohwnd 887c7a5
Update docs/core/testing/unit-testing-mstest-migration-from-tmi.md
nohwnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
docs/core/testing/unit-testing-mstest-migration-from-tmi.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| title: MSTest migration from Legacy Test runner | ||
| description: Learn about migrating from Legacy test runner to latest MSTest. | ||
| author: nohwnd | ||
| ms.author: jajares | ||
| ms.date: 08/21/2025 | ||
| --- | ||
|
|
||
| # MSTest legacy runner migration guide | ||
|
|
||
| This guide assists users in upgrading their MSTest tests that rely on legacy test runner in Visual Studio and VSTest, to move to latest MSTest. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Who is impacted? | ||
|
|
||
| Users who upgrade to VSTest 18.0.0 or newer and encounter error: | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```plaintext | ||
| MSTest v1 run was offloaded to legacy TestPlatform runner, this is typically caused by: | ||
| - using .testsettings file | ||
| - setting ForcedLegacyMode in your runsettings file | ||
| - running Web and Load test (WLT) | ||
| - running Coded UI Tests (CUIT) | ||
| - running manual tests | ||
| - running generic tests | ||
|
|
||
| This runner was removed from the product and can no longer be used. | ||
| ``` | ||
|
|
||
| Version 18 of VSTest removed the ability to run MSTest v1 tests via the legacy runner (running MSTest v1 tests via VSTest remains unaffected.). The legacy runner, also called TMI, TPv0, QTAgent, was removed from VSTest and Visual Studio. | ||
|
|
||
| ### Solving the error | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The error can show up for multiple reasons, typically the reasons that are listed. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Using .testsettings file | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Providing `.testsettings` file to the run will trigger this error. Test settings files are no longer supported in VSTest and you should replace them with `.runsettings` file. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| To migrate from testsettings to runsettings, you can use the TestSettings migrator tool that is shipped with Visual Studio 2022. For more information, see [Upgrade from .testsettings to .runsettings](https://learn.microsoft.com/visualstudio/test/migrate-testsettings-to-runsettings). | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| When moving away from testsettings, consider upgrading from MSTest v1 to latest MSTest following [this migration guide](unit-testing-mstest-migration-from-v1-to-v3.md). | ||
|
|
||
| #### Setting ForcedLegacyMode in runsettings | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Inspect your runsettings file to see if `<ForcedLegacyMode>true</ForcedLegacyMode>` is set explicitly. This will force switching to the legacy MSTest runner. You need to remove this explicit setting. | ||
|
|
||
| #### Running Web and Load test (WLT) | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Web and Load test workload and adapter was deprecated and removed. If you still have the need to run Web and Load tests, avoid upgrading from VSTest 17.x. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Running Coded UI Tests (CUIT) | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Coded UI test workload and adapter was deprecated and removed. If you still have the need to run Coded UI tests, avoid upgrading from VSTest 17.x. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Running manual tests | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Manual test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #### Generic tests tests | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Generic test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. | ||
IEvangelist marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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
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.
Uh oh!
There was an error while loading. Please reload this page.