What is the difference between MSTest.TestAdapter and MSTest.TestFramework and when do I need it?

What is the difference between MSTest.TestAdaptervs MSTest.TestFrameworkand when do I need which one?

In the NuGet descriptions you can read:

MSTest.TestAdapter

An adapter for detecting and running tests based on the MSTest Framework.

MSTest.TestFramework

This is MSTest V2, an evolution of the Microsoft Test Framework. + To detect and run tests, install MSTest.TestAdapter.


Well, not very useful, and I always install both, because I'm never sure which one I should take. It is strange that in one of my test projects I only have MSTest.TestFramework(I think by chance), and ReSharper can still detect tests.

My questions about these packages:

  • Do you really need to install both of them?
  • TestAdapter?
  • TestFramework? ?

GitHub .

MSTest V2 .

, , , .

+4
2

, Visual Studio Visual Studio Test Platform ,

https://github.com/Microsoft/vstest

, VSTest . ( NUnit/xUnit/MSTest NuGet ). , MSTest.TestAdapter.

MSTest.TestFramework . NuGet, unit test . Visual Studio.

, ", , ".

@Nkosi, , , Visual Studio. MSTest , unit test .

+6

?

. ? (. )

TestAdapter?

/, MSTest MSTest Framework.

TestFramework?

, / , / .

?

/, .

+2

Source: https://habr.com/ru/post/1689156/


All Articles