Skip to content

Find a way to execute VS 2015 MSTest projects in VS 2017 #108

@jcansdale

Description

@jcansdale

This is a tracking issue to find the best way to execute VS 2015 MSTest projects in VS 2017.

Here is a sample VS 2017 solution that can execute its test using TestDriven.Net or the built in Test Explore. It uses the test runner from VS 2015 (which can be found in the lib\MSTest folder): UnitTestProject2.zip

To convert an existing VS 2017 solution.

  1. Open the NuGet manager and delete the following packages:

image

  1. Copy the lib folder UnitTestProject2.zip to your solution folder.

  2. Add a reference to lib\MSTest\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll.

You should now be able to execute your tests using either TestDriven.Net or the built in Test Explorer.

Please give this a try and let me know how well it works.

Would it be useful if this was deployed as a NuGet package?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions