Running VS2010 UnitTests project from TFS2008 Team Build

后端 未结 3 1536
天涯浪人
天涯浪人 2020-12-17 06:44

I have a Visual Studio 2010 MVC 3 application with unit tests projects in it. I have a TFS 2008 build definition to build the solution.

On the build agent i have got

相关标签:
3条回答
  • 2020-12-17 07:28

    The switches are added because MSTest is trying to publish the test results to the server so that you can see the information in the build log in team build explorer, as well as in the cube for reporting, etc.

    Assuming you installed Team Explorer 2010 when you installed VS2010 Professional you should be able to publish the test results (unless the licensing requires premium or ultimate - I can't remember). It might be worth reinstalling and reapplying the service pack to see if that fixes the problem.

    0 讨论(0)
  • 2020-12-17 07:40

    I had problem with spaces in my dll-path. The quotation marks didn't work (probably because I missed something obvious?). I did NOT have VS installed on the machine.

    0 讨论(0)
  • 2020-12-17 07:42

    You need VS 2010 Premium or Ultimate installed to use those switches in MSTest.exe. You can get around this sort of by just doing an Exec of MSTest with the switches you want, but then you won't see the results as nicely in your build.

    0 讨论(0)
提交回复
热议问题