Pex vs. NUnit: How to run Pex generated tests using NUnit?

I am using Pex to generate unit tests, which I then execute using NUnit (2.4).  On the Team City Server, NUnit fails to load the Pex assemblies, and crashes.  Example:

NUnit Error: Could not load file or assembly 'Microsoft.Pex.Framework, Version=0.19.41110.1,

Pex is not installed on the Team City server.  The DLL's are in a folder which is part of the SCM source code download.  We would rather not install Pex (or other tools).  I need to set the PATH environment variable to include the DLL folder so NUnit can find them, for those specific projects that use the particular DLL folder.  I tried setting the system.path in the enviroment variables section, viz


but this is not working.  Is there a way to do this via configuration settings?

Thanks for your help.

Comment actions Permalink

Sorry for the delay. The question is still relevant?. If yes please leave a comment or create a separate thread.

Kind regards,

Comment actions Permalink

Hi Marina,

I know this post is very old but is also very relevant to me, hence replying here. Is it possible to run Pex generate NUnit test cases on TeamCity? If yes, how can i get this to work? I am not very keen on installing Pex on the TC server. Is there a way to get this to work without installing Pex on the server?




Please sign in to leave a comment.