nunit tests throwing exception only when run as part of tfs msbuild process

后端 未结 4 1348
野的像风
野的像风 2020-12-06 01:35

I\'m building and deploying a solution from Visual Studio 2015 using TFS 2012 without issues. I have decided to incorporate my unit tests as part of the prerequisites for th

4条回答
  •  粉色の甜心
    2020-12-06 02:07

    I had the same problem on my build server when using NUnit 3 via NuGet. I uninstalled NUnit 2 and 3 test adapters from Visual Studio, and NUnit 2 from the machine. I still had the problem.

    In my case the issue was caused by 4 NUnit2 DLLs hiding in :

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\Extensions

    As soon as they were deleted the TFS build executed perfectly.

提交回复
热议问题