Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is MSTest V2

I can't seem to find this. Specifically, what I'm looking for is the ability to use [DataTestMethod] and [DataRow] attributes in my unit tests. I have Visual Studio Professional 2015 installed and I cannot seem to find these attributes in my installation. I've run the setup to see if there's something I'm missing and I can't see anything missing that might contain it.

According to this Microsoft page: https://blogs.msdn.microsoft.com/visualstudioalm/2016/06/17/taking-the-mstest-framework-forward-with-mstest-v2/

"...you can start using it right away (with Visual Studio 2015 itself) with these steps:"

"Install the “MSTest V2” TestFramework as before i.e. look for, and install the framework package as shown below:"

It's unclear what "as before" refers to. I can't find MSTest V2 for installation anywhere.

Right above the quote above, is this 5th step:

(5) Delivered as a NuGet package.

Yet I can find no NuGet package for MS Test V2.

What's the deal? Seems this ought to be ridiculously simple to do and yet I'm totally stumped.

like image 326
Pete Avatar asked Sep 02 '16 17:09

Pete


2 Answers

You can use this NuGet package:

https://www.nuget.org/packages/MSTest.TestFramework/1.0.1-preview

Even though the package has the version number "1.x", this appears to be the package that the announcement is referring to.

like image 70
vcsjones Avatar answered Nov 10 '22 05:11

vcsjones


To be specific :

  • Documentation : https://github.com/Microsoft/testfx-docs
  • Product repository : https://github.com/Microsoft/testfx
  • NuGet : https://www.nuget.org/packages/MSTest.TestFramework/
like image 44
Jinath Sanjitha Avatar answered Nov 10 '22 04:11

Jinath Sanjitha