-
Notifications
You must be signed in to change notification settings - Fork 6k
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
base: main
Are you sure you want to change the base?
Add docs for tpv0 removal #48173
Conversation
Adding @gewarren as a reviewer as this is related to breaking changes in the product. |
|
||
# 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. | |
This guide assists you in upgrading your MSTest tests that rely on legacy test runner in Visual Studio and VSTest to the latest MSTest. |
|
||
### Who is impacted? | ||
|
||
Users who upgrade to VSTest 18.0.0 or newer and encounter error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users who upgrade to VSTest 18.0.0 or newer and encounter error: | |
If you upgrade to VSTest 18.0.0 or later and encounter error the following error, you need to migrate: |
|
||
### Solving the error | ||
|
||
The error can show up for multiple reasons, typically the reasons that are listed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error can show up for multiple reasons, typically the reasons that are listed. | |
The error can appear for multiple reasons: | |
- [Using a .testsettings file](#using-a-testsettings-file) | |
- [Setting ForcedLegacyMode](#setting-forcedlegacymode) | |
- [Web and Load tests (WLT)](web-and-load-tests-wlt) | |
- [Coded UI tests (CUIT)](#coded-ui-tests-cuit) | |
- [Manual tests](#manual-tests) | |
- [Generic tests](#generic-tests) |
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Solving the error | |
### Resolve the error |
|
||
The error can show up for multiple reasons, typically the reasons that are listed. | ||
|
||
#### Using .testsettings file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#### Using .testsettings file | |
#### Using a .testsettings file |
|
||
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. | ||
|
||
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). | |
To migrate from testsettings to runsettings, you can use the TestSettings migrator tool that shipped with Visual Studio 2022. For more information, see [Upgrade from .testsettings to .runsettings](/visualstudio/test/migrate-testsettings-to-runsettings). |
|
||
#### Running Web and Load test (WLT) | ||
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. | |
The Web and Load test workload and adapter was deprecated and removed. If you still need to run Web and Load tests, avoid upgrading from VSTest 17.x. |
|
||
#### Running Coded UI Tests (CUIT) | ||
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. | |
The Coded UI test workload and adapter was deprecated and removed. If you still need to run Coded UI tests, avoid upgrading from VSTest 17.x. |
|
||
#### Running manual tests | ||
|
||
Manual test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manual test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. | |
The manual-test test type was deprecated and removed. If you still need to run manual tests, avoid upgrading from VSTest 17.x. |
|
||
#### Generic tests tests | ||
|
||
Generic test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic test test type was deprecated and removed. If you still have the need to manual tests, avoid upgrading from VSTest 17.x. | |
The generic-test test type was deprecated and removed. If you still need to run generic tests, avoid upgrading from VSTest 17.x. |
Summary
Adds short doc that is linked from the error shown when tpv0 is used in VSTest 18. The component was removed and this doc will help dispatching the users to migration documents, especially mstest v1 to mstest v3 where we expect the most "traffic". This is also a place that we can update with additional FAQ etc as more people encounter this error.
Internal previews