.netunit-testingmockingmolespex-and-moles

Moles and Stubs on build server


I'm trying to get our team to use Moles and Stubs primarily to Mole out static classes. One thing I need to find out is do I have to install moles and stubs using the installation program on my build servers? Or can I just deploy the dependencies with my code so that the moled out tests run on my build server?

Thanks!


Solution

  • We have has problems with running Pex and Moles on the build server, until we installed the package on the build machine itself. It actually requires a dedicated target to be able to deal with the specific Moles project types. http://research.microsoft.com/en-us/projects/pex/releasenotes.aspx.

    So, you will need to install Pex and Moles on your build server to run without problems.