How to use PEX in Visual Studio 2012

房东的猫 提交于 2019-11-28 07:17:41

As far as I know, they are waiting for a final version of Visual Studio 2012 to release a version of Pex compatible with it. I can't understand why Microsoft doesn't make this things clear... :/

Below are the comments from http://visualstudiogallery.msdn.microsoft.com/fb5badda-4ea3-4314-a723-a1975cbdabb4

Pex for Visual Studio 2012 2 Posts | Last Post April 23, 2013

Written April 23, 2013 Flynn Hi, I am wondering: There is PEX for Visual Studio 2010, there is Code Digger for Visual Studio 2012 and portable libraries but there is nothing for Visual Studio 2012 and all the the other library formats. Why is that?

Written April 23, 2013 Nikolai Tillmann Code Digger (for Portable Class Libraries) is the first Visual Studio extension from the Pex Team for Visual Studio 2012. Stay tuned for future extensions that bring more aspects of the rich experience of the Pex Visual Studio 2010 Power Tools to the latest version of Visual Studio. If you are looking for a particular Pex feature for Visual Studio 2012, drop as an email at pexdata@microsoft.com.*

Looks like they introduced Code Digger. From the PEX webpage:

Code Digger for Visual Studio 2012 is a lightweight version of Pex that allows you to explore public .NET methods in Portable Class Libraries directly from the code editor.

As far as I have read from Microsofts documentation PEX for Visual Studio 2012 is now an integral part called "Fakes and Moles", please look here:
http://research.microsoft.com/en-us/projects/pex/

And here:
http://msdn.microsoft.com/en-us/library/hh549175.aspx

Michael Freidgeim

You can continue to use PEX for test generation by opening your solution(s) in VS 2010 , even if  you are normally working inside VS 2012. VS project schema is very compatible between VS 2010 and VS 2012.

You also could consider to run command line PEX from 2010 add-in. See the answer in Create NUnit test cases automatically from Pex. read more about this in Exercise 5 of Parameterized Unit Testing with Microsoft Pex

According to This Webcast

Code Digger was released so that people can see the power of PEX when used properly before they release the Visual Studio 2012 version where people pick it apart for not working with platform specific cases.

They don't speak of a release date but since Visual Studio 2013 is now RTM you'd think that it would be soon. I definitely miss PEX as it helped with Parameterized Unit Testing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!