Reputation: 53
By looking at the documentation for running automated tests from test plans it states:
A test plan containing your automated tests, which you have associated with automated test methods using Visual Studio 2017, or Visual Studio 2015 or earlier.
Has anyone had success running it in VS2019 or do I have to downgrade my VS2019 to VS2017 in order to make it work?
Upvotes: 0
Views: 1031
Reputation: 35099
Has anyone had success running it in VS2019 or do I have to downgrade my VS2019 to VS2017 in order to make it work?
No, you don't need to downgrade the Visual Studio. I have been creating and running automated tests in Visual Studio 2019 before. And it could work as expected.
Here are the steps:
1.In Visual Studi0 2019 , you need to associate automated tests with test cases in Test Explore.
2.In Azure Devops, you can follow the steps in this document to create the same build and release. It also applies in Visual Studio 2019.
Result:
Update:
I could reproduce this error:
To solve this issue, you need to select the Test Run in Release Pipeline -> VSTest task
.
Update2:
You need to set up test assemblies in the build pipeline.
Upvotes: 2