locked
Moles, Team Build.. and code contracts? RRS feed

  • Question

  • Hello

    I am using the latest version of Moles, vs 2010, tfs 2010 and the latest version of code contracts.

    When I run my test in vs 2010, everything goes fine.

    If I try to run the tests on my Team Foundation Build (msbuild), I get the same error for some of those tests. This is the error message:

    "The test adapter 'MolesAgentAdapter' threw an exception while running test 'NameOfTheTest'. Failed to read from an IPC Port: The pipe has been ended."

    Having a look into Server's Windows Event Log, I've found out many error entries with the same error message:

     

    Any suggestion? Is it a Moles or a Code Contract related issue?

    Thanks

     Application: Microsoft.Moles.VsHost.x86.exe

    Framework Version: v4.0.30319

    Description: The application requested process termination through System.Environment.FailFast(string message).

    Message: Must use the rewriter when using Contract.Requires

    Stack:..

    Edit:

    Problem solved installing code contracts + windows 7 sdk in the server.

    Friday, February 4, 2011 12:54 PM

Answers