Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smart Unit Tests: What's the right way to reference Microsoft.Pex.Framework.dll?

Smart Unit Tests requires a reference to Microsoft.Pex.Framework.dll. On my machine this file is located in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Pex\Microsoft.Pex.Framework.dll.

I don't think that's the right way to reference the file:

  1. It's private data of a Visual Studio extension. Developers probably are not supposed to reach into that folder.
  2. The path depends on the VS version and OS language.

What's the right way to reference Microsoft.Pex.Framework.dll in Visual Studio Smart Unit Tests projects?

like image 455
boot4life Avatar asked Dec 02 '15 14:12

boot4life


People also ask

What is Pex testing?

Pex is a Visual Studio add-in and testing tool developed by Microsoft Research. It investigates, explores the managed code and suggests the tests, which the project requires.


2 Answers

For now, referencing by path is the only option. I will see if we can make it available as a NuGet package.

like image 65
pvlakshm Avatar answered Oct 17 '22 08:10

pvlakshm


Would be great to have this as a NuGet package otherwise the build failes on pure MSBuild buildslaves due to the missing reference..

like image 1
Spacefish Avatar answered Oct 17 '22 10:10

Spacefish